diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-23 22:09:52 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-23 22:09:54 +0300 |
| commit | 19e830133f11a457846c70fffb150595f2acb75e (patch) | |
| tree | 0e52e663dd2d564ea67b3a46b2a04e256f51f490 /src/server/neo4j_cypher_parser.py | |
| parent | 32ff38f0be323927188920e42f9e1284da215740 (diff) | |
server: support unicode in link names
from
https://docs.python.org/2/library/re.html?highlight=regular%20expressions#contents-of-module-re
re.U
re.UNICODE
Make \w, \W, \b, \B, \d, \D, \s and \S dependent on the Unicode
character properties database.
New in version 2.0.
Diffstat (limited to 'src/server/neo4j_cypher_parser.py')
| -rw-r--r-- | src/server/neo4j_cypher_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/neo4j_cypher_parser.py b/src/server/neo4j_cypher_parser.py index d83e93f8..01719590 100644 --- a/src/server/neo4j_cypher_parser.py +++ b/src/server/neo4j_cypher_parser.py @@ -554,7 +554,7 @@ class Cypher_Parser(object): return root_node def __match(self, rgx, input): # error handling match - ret = re.match(rgx, input) + ret = re.match(rgx, input, re.UNICODE) if not ret: raise Exception('cypher parse error: rgx match failure: rgx: %s, input: "%s"' % (rgx, input)) return ret |
