Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fork of regex-syntax escape functions
artichoke-backend maintains a small fork of several functions from regex-syntax. There have been some upstream changes I noticed. This commit pulls them in and rebases the fork. This commit restructures the 'escape_into' function, changes how form feed char is handled, adds comments, and adds tests. The only use of the 'syntax' module is Regexp::escape. The call sites were refactored to be more debugger friendly.
- Loading branch information
Showing
2 changed files
with
55 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters