File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ wildcardedDotChild = { ".*" }
10
10
namedDotChild = ${ "." ~ childName }
11
11
childName = @{ char+ }
12
12
char = {
13
- !("\"" | "'" | "\\") ~ ANY // char is still TBD in the draft
13
+ "-"
14
+ | ASCII_DIGIT
15
+ | ASCII_ALPHA
16
+ | "_"
17
+ | '\u{80}'..'\u{10FFFF}'
14
18
}
15
19
16
20
union = { "[" ~ unionElement ~ ("," ~ unionElement)* ~ "]" }
Original file line number Diff line number Diff line change 10
10
"document" : {"a" : " A" , "b" : " B" },
11
11
"result" : [" A" ]
12
12
}, {
13
+ "name" : " dot child, ☺ name" ,
14
+ "selector" : " $.☺" ,
15
+ "document" : {"☺" : " A" , "b" : " B" },
16
+ "result" : [" A" ]
17
+ }, {
18
+ "name" : " dot child, invalid character" ,
19
+ "selector" : " $.&" ,
20
+ "invalid_selector" : true
21
+ }, {
13
22
"name" : " dot child absent" ,
14
23
"selector" : " $.c" ,
15
24
"document" : {"a" : " A" , "b" : " B" },
You can’t perform that action at this time.
0 commit comments