Repository navigation
grep: reject misspelled character classes like [:space:] - #100
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
|
GNU grep testsuite comparison: |
|
GNU grep testsuite comparison: |
| } | ||
|
|
||
| /// True when `pattern` holds a bracket expression that looks like a misspelled | ||
| /// character class, e.g. `[:space:]` instead of `[[:space:]]`. GNU grep rejects |
There was a problem hiding this comment.
Why not disable ONIG_SYN_OP_POSIX_BRACKET instead? From the oniguruma documentation it sounds like the same thing:
https://github.com/kkos/oniguruma/blob/master/doc/SYNTAX.md#24-onig_syn_op_posix_bracket-enable-posix-xxxx
There was a problem hiding this comment.
Ah I see that controls both [:foo:] and [[:foo:]]. 😢
No description provided.