Skip to content

Commit

Permalink
Now also escapes files in string format
Browse files Browse the repository at this point in the history
  • Loading branch information
Royalgamer06 authored Aug 21, 2017
1 parent 9b64842 commit aaba197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function (files) {
});
toProcess = toProcess.trim();
} else {
toProcess = '"' + files + '"';
toProcess = '"' + files.replace(/\^/g, '^^').replace(/\&/g, '^&').replace(/\</g, '^<').replace(/\>/g, '^>').replace(/\|/g, '^|').replace(/\%/g, '%%') + '"';
}
return toProcess;

Expand Down

0 comments on commit aaba197

Please sign in to comment.