Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The
.
regex should not take the ASCII fast path
see #375 for an example of undefined behavior because of this fast path. TLDR: the ASCII fast path will stop matching on the first matching byte, however this would split multi-byte codepoints. Combined with `Lexer::remaining` (or even just capturing the string like in the issue), this leads to non-utf8 strings escaping into user code. This is UNSOUND.
- Loading branch information