This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that quoted strings are matched correctly
We need to match the initial quote, and then all characters up to but not including a matching final quote, taking into account escaped quotes as well. This patch uses a technique learned from http://blog.stevenlevithan.com/archives/match-quoted-string to do so, and updates existing regular expressions, including the one modified for #21, to properly match quoted strings, introducing several new test cases to verify the changes.
- Loading branch information
1 parent
dd45d1e
commit bb5f960
Showing
2 changed files
with
34 additions
and
10 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