Skip to content

Commit d9acf27

Browse files
committed
fix regex issue
1 parent b00802a commit d9acf27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psCommandService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ PSCommandService.prototype._sanitize = function(toSanitize,isQuoted) {
368368

369369
// if not quoted, stop $ and |
370370
} else {
371-
toSanitize = toSanitize.replace(/([\$\|\(\)\{\}\[\]]\\)/g, "`$1");
371+
toSanitize = toSanitize.replace(/([\$\|\(\)\{\}\[\]\\])/g, "`$1");
372372
}
373373

374374
return toSanitize;

0 commit comments

Comments
 (0)