@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.
- package/bin/commands/files.js +3 -6
- package/package.json +1 -1
package/bin/commands/files.js
CHANGED
|
@@ -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