GenieClient / Genie4

.NET 6 Update of Genie
GNU General Public License v3.0
20 stars 14 forks source link

Fix parsing error in #highlight command #173

Open digitalnyc1 opened 1 month ago

digitalnyc1 commented 1 month ago

Utility.ArrayToString(oArgs, 3) is used here but the positional argument to Utility.ArrayToString is a starting index in the array, rather than an absolute index. This leads to the arguments after the regex pattern (case sensitivity, sound and class) being included in the pattern, which is undesired.

Update: Rearranged the order of the command line arguments to match how it's written in the wiki and how they're saved in highlights.cfg.