We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a52eb commit c94179cCopy full SHA for c94179c
jsonpath_ng/lexer.py
@@ -64,7 +64,9 @@ def tokenize(self, string):
64
t_ignore = ' \t'
65
66
def t_ID(self, t):
67
- r'[a-zA-Z_@][a-zA-Z0-9_@\-]*'
+ # CJK: [\u4E00-\u9FA5]
68
+ # EMOJI: [\U0001F600-\U0001F64F]
69
+ r'([a-zA-Z_@]|[\u4E00-\u9FA5]|[\U0001F600-\U0001F64F])([a-zA-Z0-9_@\-]|[\u4E00-\u9FA5]|[\U0001F600-\U0001F64F])*'
70
t.type = self.reserved_words.get(t.value, 'ID')
71
return t
72
tests/test_parser.py
@@ -10,6 +10,8 @@
10
# Atomic
11
# ------
12
#
13
+ ("😀", Fields("😀")),
14
+ ("你好", Fields("你好")),
15
("foo", Fields("foo")),
16
("*", Fields("*")),
17
("1", Fields("1")),
0 commit comments