Validate every regex literal as Ruby's parser does #22
Reference in New Issue
Block a user
Delete Branch "benvin/gentypes-guard-regex"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ruby compiles every non-interpolated regex literal while parsing a file, so an invalid one is a SyntaxError for the whole file, even inside a method that never runs. w10k only checked interpolated regexes it evaluated, so a file puppet fails to load could still generate.
\u/\x/\pescapes, atomic and option-only groups, literal{and extended mode#@/#$in a regex as interpolation