From 3a359fac1e2fabdc42cd18e90eea94edd202eda6 Mon Sep 17 00:00:00 2001 From: kueken Date: Mon, 21 Jul 2025 17:16:28 +0200 Subject: [PATCH] Potential fix for code scanning alert no. 24: Incomplete string escaping or encoding Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- sourcefiles/modern/plugins/jquery/jquery-ui-1.12.1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcefiles/modern/plugins/jquery/jquery-ui-1.12.1.js b/sourcefiles/modern/plugins/jquery/jquery-ui-1.12.1.js index 02f5c16e7..cf43cb6cb 100644 --- a/sourcefiles/modern/plugins/jquery/jquery-ui-1.12.1.js +++ b/sourcefiles/modern/plugins/jquery/jquery-ui-1.12.1.js @@ -1561,7 +1561,7 @@ var keycode = $.ui.keyCode = { // Internal use only var escapeSelector = $.ui.escapeSelector = ( function() { - var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g; + var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g; return function( selector ) { return selector.replace( selectorEscape, "\\$1" ); };