-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix cvar pattern replacement #561
Conversation
Can you give a crash log/link an issue? I don't understand why the dollar sign would be special |
Sure, here's the exception (with
|
From what I see in the crash log, it is trying to replace $1 for first group match (and similarly) but it crashes when there isn't any number after the $ symbol (or it crashes because group referencing itself makes no sense?). Why is it even doing this tho? I used this when replacing string parts using regular expressions. |
See the Matcher.appendReplacement docs. Instead of doing this, you could replace all |
Co-authored-by: allinkdev <[email protected]>
This fixes an issue where executing commands similar to
/say %$%
with Client Commands installed would cause the client to crash.