From 19e830133f11a457846c70fffb150595f2acb75e Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 23 Apr 2015 22:09:52 +0300 Subject: 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. --- src/server/neo4j_cypher_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.3.1