Skip to content
Snippets Groups Projects
Commit 98613494 authored by codedust's avatar codedust
Browse files

Update comment for escaping special regex characters

parent 56373b59
No related branches found
No related tags found
No related merge requests found
......@@ -1047,7 +1047,8 @@ var firmwarewizard = function() {
return 0;
});
// prepare the matches for use in regex (join by pipe and escape dots)
// prepare the matches for use in regex (join by pipe and escape regex special characters)
// according to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
var matchString = matches.map(x => x.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')).join('|');
// match image files. The match either ends with
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment