From 811cd333b67ba977b35c7ed72e5c290634305253 Mon Sep 17 00:00:00 2001 From: Walker Selby Date: Sat, 23 Dec 2023 01:39:32 +0000 Subject: Update Regex information (#825) Update Contributing Regex information #825 --- CONTRIBUTING.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ad967170c..dc65dd6f4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -73,7 +73,10 @@ You can write in the description of the pr the wording for the changelog as well - Don't forget to add `@FeatureToggle` to new standalone features (not options to that feature) in the config. - Do not use `e.printStackTrace()`, use `CopyErrorCommand.logError(e, "explanation for users")` instead. - Do not use `MinecraftForge.EVENT_BUS.post(event)`, use `event.postAndCatch()` instead. -- Do not use `toRegex()`, use `toPattern()` instead. +- Do not use `toRegex()` or `toPattern()`, use `RepoPattern` instead. + - + See [RepoPattern.kt](https://github.com/walkerselby/SkyHanni/blob/beta/src/main/java/at/hannibal2/skyhanni/utils/repopatterns/RepoPattern.kt) + for more information and usages - Please use Regex instead of String comparison when it is likely Hypixel will change the message in the future. ## Software Used in SkyHanni -- cgit