@majkapp/plugin-kit 1.0.9 → 1.0.10
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/dist/plugin-kit.js +2 -2
- package/package.json +1 -1
package/dist/plugin-kit.js
CHANGED
|
@@ -153,11 +153,11 @@ function validateEntity(entityType, entity) {
|
|
|
153
153
|
function pathToRegex(p) {
|
|
154
154
|
const keys = [];
|
|
155
155
|
const pattern = p
|
|
156
|
-
.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1')
|
|
157
156
|
.replace(/\/:([A-Za-z0-9_]+)/g, (_m, k) => {
|
|
158
157
|
keys.push(k);
|
|
159
158
|
return '/([^/]+)';
|
|
160
|
-
})
|
|
159
|
+
})
|
|
160
|
+
.replace(/([.+*?=^!${}()[\]|/\\])/g, '\\$1');
|
|
161
161
|
return { regex: new RegExp(`^${pattern}$`), keys };
|
|
162
162
|
}
|
|
163
163
|
/**
|