Skip to content

Commit 9106ffa

Browse files
Potential fix for code scanning alert no. 24: Incomplete string escaping or encoding (#1661)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 8257c14 commit 9106ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sourcefiles/modern/plugins/jquery/jquery-ui-1.12.1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ var keycode = $.ui.keyCode = {
15611561

15621562
// Internal use only
15631563
var escapeSelector = $.ui.escapeSelector = ( function() {
1564-
var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;
1564+
var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g;
15651565
return function( selector ) {
15661566
return selector.replace( selectorEscape, "\\$1" );
15671567
};

0 commit comments

Comments
 (0)