From 11a71f5f4d6dc639860d10a174f6592ab50d527a Mon Sep 17 00:00:00 2001 From: autumnlooijen <54728799+autumnlooijen@users.noreply.github.com> Date: Thu, 24 Sep 2020 09:48:24 -0700 Subject: [PATCH] Update ImportJSON.gs --- ImportJSON.gs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImportJSON.gs b/ImportJSON.gs index 731806e..4a44be5 100644 --- a/ImportJSON.gs +++ b/ImportJSON.gs @@ -473,7 +473,7 @@ function includeXPath_(query, path, options) { * Returns true if the rule applies to the given path. */ function applyXPathRule_(rule, path, options) { - return path.indexOf(rule) == 0; + return path.indexOf(rule) == 0 && path.match(rule + "($|/)"); } /**