Commit Graph

6 Commits

Author SHA1 Message Date
Pieter-Jan Briers
4a2a63a86b Cache regex instances in most cases (#27699)
Using static Regex functions that take in a pattern is bad because the pattern constantly needs to be re-parsed. With https://github.com/space-wizards/RobustToolbox/pull/5107, the engine has an analyzer to warn for this practice now.

This commit brings most of content up to snuff already, though some of the tricker code I left for somebody else.
2024-05-06 08:57:32 +10:00
Verm
432e6ec45d Fix capitalization for pirates and rats (#26644)
* Fix capitalization for pirates and rats

* Deal with replacements better

* Be smarter about caps

* Do last word properly

* Variables named a bit better

* Fix Consistency

* Undo change that's not needed anymore

* Fix up pirate since it doesn't need to check early either

* Make mobster replacin' a bit better anyway

* Remove extra space

* Use capture groups for mobster in', add comments for first and last words

* Slightly more clarification with comments
2024-04-17 20:04:24 +10:00
Kara
18df657fb6 Word replacement accent system (#15086) 2023-04-03 19:50:37 -07:00
Kara
c36e53da29 Another mobster accent fix (#9335) 2022-07-01 13:47:58 -07:00
Kara
bdf6920f4c Slight mobster accent fixes (#9017) 2022-06-22 16:39:29 -07:00
Kara
cbd5abb698 Mobster accents for rat king/servants (#8927)
* basically perfect

* oops

* huh

* new substitutions from retequizzle, rane, and olddancejacket + crown accent

* fixes
2022-06-17 19:36:19 -07:00