Skip to content

Commit

Permalink
Supress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Jan 30, 2021
1 parent 64d6d55 commit 5df0822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MaterialSkin/HTML/material/html/js/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var MULTI_SPLIT_REGEX = undefined;
try {
// Safari on iOS and macOS does not support lookbehind
// ...so the following will throw an exception
new RegExp("(?<=)");
let test = new RegExp("(?<=)");
// ...and need to set in eval() as otherwise page fails to load!
eval("MULTI_SPLIT_REGEX = new RegExp(/(?<!\\s),(?!\\s)/);");
} catch(e) {
Expand Down

0 comments on commit 5df0822

Please sign in to comment.