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 + "($|/)"); } /**