mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 00:45:37 +01:00
allow path parser accept numbers as keys
This commit is contained in:
@@ -4,5 +4,5 @@ array_locator = ${ "[" ~ negative_index_indicator? ~ array_offset ~ "]" }
|
||||
relaxed_array_locator = ${ negative_index_indicator? ~ array_offset }
|
||||
|
||||
root = ${ "$" }
|
||||
json_path_key = ${ identifier | string }
|
||||
json_path_key = ${ identifier | string | ASCII_DIGIT+ }
|
||||
path = ${ SOI ~ root ~ (array_locator | "." ~ json_path_key)* ~ EOI }
|
||||
|
||||
Reference in New Issue
Block a user