object-scan
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -6,3 +6,3 @@ const guid = require("./guid"); | ||
return input // split at "." and before "[", but only if not escaped | ||
.replace(/(?<!\\|^)((?:\\{2})*)(?:\.|(?=\[))/g, (_, esc) => `${esc}${tmpSep}`).split(tmpSep) // handle or groups | ||
.replace(/(?<!\\|^)((?:\\{2})*)(?:\.|(?=\[))(?!\[?$)/g, (_, esc) => `${esc}${tmpSep}`).split(tmpSep) // handle or groups | ||
.map(e => { | ||
@@ -12,3 +12,3 @@ const orMatches = []; // handle basic or-groups | ||
e.replace(/^{(.+)}$/g, (complete, m) => orMatches.push(...m // split at ",", but only if not escaped | ||
.replace(/(?<!\\)((?:\\{2})*)(?:,)(?!$)/g, (_, esc) => `${esc}${tmpSep}`).split(tmpSep))); // handle list or-groups (only numbers) | ||
.replace(/(?<!\\|^)((?:\\{2})*)(?:,)(?!$)/g, (_, esc) => `${esc}${tmpSep}`).split(tmpSep))); // handle list or-groups (only numbers) | ||
@@ -19,2 +19,2 @@ e.replace(/^\[{(\d+(?:,\d+)*)}]$/g, (complete, m) => orMatches.push(...m.split(",").map(idx => `[${idx}]`))); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsL3BhcnNlci5qcyJdLCJuYW1lcyI6WyJndWlkIiwicmVxdWlyZSIsIm1vZHVsZSIsImV4cG9ydHMiLCJpbnB1dCIsInRtcFNlcCIsInJlcGxhY2UiLCJfIiwiZXNjIiwic3BsaXQiLCJtYXAiLCJlIiwib3JNYXRjaGVzIiwiY29tcGxldGUiLCJtIiwicHVzaCIsImlkeCIsImxlbmd0aCJdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTUEsT0FBT0MsUUFBUSxRQUFSLENBQWI7O0FBRUFDLE9BQU9DLE9BQVAsR0FBa0JDLEtBQUQsSUFBVztBQUMxQixRQUFNQyxTQUFTTCxNQUFmO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CA9IGd1aWQoKTtcbiAgcmV0dXJuIGlucHV0XG4gICAgLy8gc3BsaXQgYXQgXCIuXCIgYW5kIGJlZm9yZSBcIltcIiwgYnV0IG9ubHkgaWYgbm90IGVzY2FwZWRcbiAgICAucmVwbGFjZSgvKD88IVxcXFx8XikoKD86XFxcXHsyfSkqKSg/OlxcLnwoPz1cXFspKS9nLCAoXywgZXNjKSA9PiBgJHtlc2N9JHt0bXBTZXB9YClcbiAgICAuc3BsaXQodG1wU2VwKVxuICAgIC8vIGhhbmRsZSBvciBncm91cHNcbiAgICAubWFwKChlKSA9PiB7XG4gICAgICBjb25zdCBvck1hdGNoZXMgPSBbXTtcbiAgICAgIC8vIGhhbmRsZSBiYXNpYyBvci1ncm91cHNcbiAgICAgIGUucmVwbGFjZSgvXnsoLispfSQvZywgKGNvbXBsZXRlLCBtKSA9PiBvck1hdGNoZXMucHVzaCguLi5tXG4gICAgICAgIC8vIHNwbGl0IGF0IFwiLFwiLCBidXQgb25seSBpZiBub3QgZXNjYXBlZFxuICAgICAgICAucmVwbGFjZSgvKD88IVxcXFwpKCg/OlxcXFx7Mn0pKikoPzosKSg/ISQpL2csIChfLCBlc2MpID0+IGAke2VzY30ke3RtcFNlcH1gKVxuICAgICAgICAuc3BsaXQodG1wU2VwKSkpO1xuICAgICAgLy8gaGFuZGxlIGxpc3Qgb3ItZ3JvdXBzIChvbmx5IG51bWJlcnMpXG4gICAgICBlLnJlcGxhY2UoL15cXFt7KFxcZCsoPzosXFxkKykqKX1dJC9nLCAoY29tcGxldGUsIG0pID0+IG9yTWF0Y2hlcy5wdXNoKC4uLm0uc3BsaXQoXCIsXCIpLm1hcChpZHggPT4gYFske2lkeH1dYCkpKTtcbiAgICAgIHJldHVybiBvck1hdGNoZXMubGVuZ3RoID09PSAwID8gZSA6IG9yTWF0Y2hlcztcbiAgICB9KTtcbn07XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2V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VxuICAgICAgICAuc3BsaXQodG1wU2VwKSkpO1xuICAgICAgLy8gaGFuZGxlIGxpc3Qgb3ItZ3JvdXBzIChvbmx5IG51bWJlcnMpXG4gICAgICBlLnJlcGxhY2UoL15cXFt7KFxcZCsoPzosXFxkKykqKX1dJC9nLCAoY29tcGxldGUsIG0pID0+IG9yTWF0Y2hlcy5wdXNoKC4uLm0uc3BsaXQoXCIsXCIpLm1hcChpZHggPT4gYFske2lkeH1dYCkpKTtcbiAgICAgIHJldHVybiBvck1hdGNoZXMubGVuZ3RoID09PSAwID8gZSA6IG9yTWF0Y2hlcztcbiAgICB9KTtcbn07XG4iXX0= |
{ | ||
"name": "object-scan", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Find Keys using Wildcard matching and optional value function.", | ||
@@ -44,3 +44,3 @@ "main": "lib/index.js", | ||
"coveralls": "3.0.1", | ||
"js-gardener": "1.24.1", | ||
"js-gardener": "1.25.0", | ||
"nyc": "12.0.2", | ||
@@ -47,0 +47,0 @@ "semantic-release": "15.5.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18286