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.
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.