@stoplight/elements 7.9.0 → 7.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +2 -1
- package/index.js +2 -1
- package/index.mjs +2 -1
- package/package.json +1 -1
- package/web-components.min.js +1 -1
package/index.esm.js
CHANGED
|
@@ -434,7 +434,8 @@ function findMapMatch(key, map) {
|
|
|
434
434
|
if (typeof key === 'number')
|
|
435
435
|
return;
|
|
436
436
|
for (const entry of map) {
|
|
437
|
-
|
|
437
|
+
const escapedKey = key.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
438
|
+
if (!!((_a = entry.match) === null || _a === void 0 ? void 0 : _a.match(escapedKey)) || (entry.notMatch !== void 0 && !entry.notMatch.match(escapedKey))) {
|
|
438
439
|
return entry;
|
|
439
440
|
}
|
|
440
441
|
}
|
package/index.js
CHANGED
|
@@ -467,7 +467,8 @@ function findMapMatch(key, map) {
|
|
|
467
467
|
if (typeof key === 'number')
|
|
468
468
|
return;
|
|
469
469
|
for (const entry of map) {
|
|
470
|
-
|
|
470
|
+
const escapedKey = key.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
471
|
+
if (!!((_a = entry.match) === null || _a === void 0 ? void 0 : _a.match(escapedKey)) || (entry.notMatch !== void 0 && !entry.notMatch.match(escapedKey))) {
|
|
471
472
|
return entry;
|
|
472
473
|
}
|
|
473
474
|
}
|
package/index.mjs
CHANGED
|
@@ -434,7 +434,8 @@ function findMapMatch(key, map) {
|
|
|
434
434
|
if (typeof key === 'number')
|
|
435
435
|
return;
|
|
436
436
|
for (const entry of map) {
|
|
437
|
-
|
|
437
|
+
const escapedKey = key.replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
438
|
+
if (!!((_a = entry.match) === null || _a === void 0 ? void 0 : _a.match(escapedKey)) || (entry.notMatch !== void 0 && !entry.notMatch.match(escapedKey))) {
|
|
438
439
|
return entry;
|
|
439
440
|
}
|
|
440
441
|
}
|