From 098a0a6e2a05ec3f7cba8d1804ed7555780865f5 Mon Sep 17 00:00:00 2001 From: Sergey Nikolaev Date: Fri, 19 Oct 2018 12:18:06 +0300 Subject: [PATCH] fix compound key search --- src/Skyscanner/JsonPath/JsonObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skyscanner/JsonPath/JsonObject.php b/src/Skyscanner/JsonPath/JsonObject.php index 85d6b8c..00e88d6 100644 --- a/src/Skyscanner/JsonPath/JsonObject.php +++ b/src/Skyscanner/JsonPath/JsonObject.php @@ -109,7 +109,7 @@ class JsonObject const RE_ROOT_OBJECT = '/^\$(.*)/'; // Child regex - const RE_CHILD_NAME = '/^\.([a-zA-Z\_\$][\w\-\$]*|\*)(.*)/'; + const RE_CHILD_NAME = '/^\.([a-zA-Z\d\_\$][\w\-\$]*|\*)(.*)/'; const RE_RECURSIVE_SELECTOR = '/^\.\.([a-zA-Z\_\$][\w\-\$]*|\*)(.*)/'; // Array expressions