diff --git a/webgoat-container/src/main/resources/static/js/backbone/underscore.js b/webgoat-container/src/main/resources/static/js/backbone/underscore.js index afd92e5bb3..6dd86c1ee2 100644 --- a/webgoat-container/src/main/resources/static/js/backbone/underscore.js +++ b/webgoat-container/src/main/resources/static/js/backbone/underscore.js @@ -1278,7 +1278,7 @@ '\u2029': 'u2029' }; - var escaper = /\\|'|\r|\n|\u2028|\u2029/g; + var escaper = /\\|'|\r|\n|\u2028|\u2029/gu; var escapeChar = function(match) { return '\\' + escapes[match]; diff --git a/webgoat-container/src/main/resources/static/js/libs/jquery-ui-1.10.4.js b/webgoat-container/src/main/resources/static/js/libs/jquery-ui-1.10.4.js index e1e90203a6..cd62fb12b6 100644 --- a/webgoat-container/src/main/resources/static/js/libs/jquery-ui-1.10.4.js +++ b/webgoat-container/src/main/resources/static/js/libs/jquery-ui-1.10.4.js @@ -11729,7 +11729,7 @@ $.widget( "ui.menu", { menus.children( ":not(.ui-menu-item)" ).each(function() { var item = $( this ); // hyphen, em dash, en dash - if ( !/[^\-\u2014\u2013\s]/.test( item.text() ) ) { + if ( !/[^\-\u2014\u2013\s]/u.test( item.text() ) ) { item.addClass( "ui-widget-content ui-menu-divider" ); } }); diff --git a/webgoat-container/src/main/resources/static/js/libs/text.js b/webgoat-container/src/main/resources/static/js/libs/text.js index 4c311edceb..443ac8c2a5 100644 --- a/webgoat-container/src/main/resources/static/js/libs/text.js +++ b/webgoat-container/src/main/resources/static/js/libs/text.js @@ -48,8 +48,8 @@ define(['module'], function (module) { .replace(/[\n]/g, "\\n") .replace(/[\t]/g, "\\t") .replace(/[\r]/g, "\\r") - .replace(/[\u2028]/g, "\\u2028") - .replace(/[\u2029]/g, "\\u2029"); + .replace(/[\u2028]/gu, "\\u2028") + .replace(/[\u2029]/gu, "\\u2029"); }, createXhr: masterConfig.createXhr || function () { diff --git a/webgoat-container/src/main/resources/static/js/libs/underscore.js b/webgoat-container/src/main/resources/static/js/libs/underscore.js index afd92e5bb3..6dd86c1ee2 100644 --- a/webgoat-container/src/main/resources/static/js/libs/underscore.js +++ b/webgoat-container/src/main/resources/static/js/libs/underscore.js @@ -1278,7 +1278,7 @@ '\u2029': 'u2029' }; - var escaper = /\\|'|\r|\n|\u2028|\u2029/g; + var escaper = /\\|'|\r|\n|\u2028|\u2029/gu; var escapeChar = function(match) { return '\\' + escapes[match];