@dynamicweb/cli 1.0.11 → 1.0.12

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.
@@ -286,11 +286,8 @@ export function resolveFilePath(filePath) {
286
286
  return path.join(p.dir, resolvedPath);
287
287
  }
288
288
 
289
+
289
290
  function wildcardToRegExp(wildcard) {
290
- return new RegExp('^' + wildcard
291
- .replace(/\./g, '\\.')
292
- .replace(/\*/g, '.*')
293
- .replace(/\+/g, '.+')
294
- .replace(/\?/g, '.')
295
- + '$');
291
+ return new RegExp('^' + wildcard.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') + '$');
296
292
  }
293
+
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dynamicweb/cli",
3
3
  "type": "module",
4
4
  "description": "Dynamicweb CLI is a commandline tool for interacting with Dynamicweb 10 solutions.",
5
- "version": "1.0.11",
5
+ "version": "1.0.12",
6
6
  "main": "bin/index.js",
7
7
  "files": [
8
8
  "bin/*"