Skip to content

Commit

Permalink
Fix code scanning alert no. 13: Useless regular-expression character …
Browse files Browse the repository at this point in the history
…escape

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
ronknight and github-advanced-security[bot] authored Nov 21, 2024
1 parent 5c8a022 commit ab9dfb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4205,7 +4205,7 @@ wysihtml5.browser = (function() {
re;

if (navigator.appName == 'Microsoft Internet Explorer') {
re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
re = new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");
} else if (navigator.appName == 'Netscape') {
re = new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})");
}
Expand Down

0 comments on commit ab9dfb7

Please sign in to comment.