From 049bc3de39388781fcd0da9d19a04eeccde6c751 Mon Sep 17 00:00:00 2001 From: kueken Date: Mon, 21 Jul 2025 17:11:33 +0200 Subject: [PATCH] Potential fix for code scanning alert no. 25: 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/momentjs/moment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcefiles/modern/plugins/momentjs/moment.js b/sourcefiles/modern/plugins/momentjs/moment.js index 79aaee596..f9748ac1c 100644 --- a/sourcefiles/modern/plugins/momentjs/moment.js +++ b/sourcefiles/modern/plugins/momentjs/moment.js @@ -800,7 +800,7 @@ function getParseRegexForToken(token, config) { function unescapeFormat(s) { return regexEscape( s - .replace('\\', '') + .replace(/\\/g, '') .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function ( matched, p1,