diff options
author | Paul McGuire <ptmcg@users.noreply.github.com> | 2022-01-14 22:13:23 -0600 |
---|---|---|
committer | Paul McGuire <ptmcg@users.noreply.github.com> | 2022-01-14 22:13:23 -0600 |
commit | 5fb6e0d597f87530cf9ef32931d5bfabeb9ce95d (patch) | |
tree | e0ebe17dce9ab79430ce5ddfca9bdfa3aaeb505d /pyparsing/core.py | |
parent | 1ccf846394a055924b810faaf9628dac53633848 (diff) | |
download | pyparsing-git-5fb6e0d597f87530cf9ef32931d5bfabeb9ce95d.tar.gz |
Fix #355 - needed re.escape, not escape_regex_range_chars in QuotedString
Diffstat (limited to 'pyparsing/core.py')
-rw-r--r-- | pyparsing/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyparsing/core.py b/pyparsing/core.py index cb9ac9a..2ab7ea7 100644 --- a/pyparsing/core.py +++ b/pyparsing/core.py @@ -3131,7 +3131,7 @@ class QuotedString(Token): + "|".join( "(?:{}(?!{}))".format( re.escape(self.endQuoteChar[:i]), - _escape_regex_range_chars(self.endQuoteChar[i:]), + re.escape(self.endQuoteChar[i:]), ) for i in range(len(self.endQuoteChar) - 1, 0, -1) ) |