Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
F53OSCServer: fixes to NSPredicate class method for OSC wildcard patt…
…erns - perform OSC wildcard `*` and `?` conversion to regex equivalent after converting curly braces to parentheses. Fixes a bug that caused `?` to falsely match on a two-character string ending in "1" (caused by the `{1}` quantifier in the regex pattern becoming converted to `(1)`.) - unescape minus signs inside of square braces (which get escaped by `stringWithSpecialRegexCharactersEscaped`) so that OSC range patterns are properly converted to regex, e.g. `[A-Z]` - only convert commas to the regex OR `|` character when inside of curly braces Code: - fix/simplify regex pattern used to match OSC `?` wildcard - only perform (potentially expensive?) substring replacements when needed - add F53OSCServerTests.m to test `+[F53OSCServer predicateForAttribute:matchingOSCPattern:]`
- Loading branch information