@lskjs/utils
Advanced tools
Comparing version 2.9.0 to 2.9.1
@@ -23,6 +23,7 @@ "use strict"; | ||
var getWildcardKeys = function getWildcardKeys(rules, keys) { | ||
if (keys === '*') return rules; | ||
var rx = /(.+\.)\*$/; | ||
var arr = typeof keys === 'string' ? [keys] : keys; | ||
var converted = arr.map(function (key) { | ||
if (key === '*') return rules; | ||
if (rx.test(key)) { | ||
@@ -29,0 +30,0 @@ var _key$match = key.match(rx), |
{ | ||
"name": "@lskjs/utils", | ||
"version": "2.9.0", | ||
"version": "2.9.1", | ||
"description": "LSK.js – utils – helpers and functions", | ||
@@ -41,3 +41,3 @@ "keywords": [], | ||
}, | ||
"gitHead": "f0f950831929450a989df9d99eae75b898d7ddea" | ||
"gitHead": "1e9f6f00a4d856f27ae4258db6ff135c55af19b2" | ||
} |
Sorry, the diff of this file is not supported yet
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
360836