From fd5656ba37e954e5e98499616b4bbc00801eaee9 Mon Sep 17 00:00:00 2001 From: Ray Papworth Date: Sat, 28 Dec 2024 09:36:20 +0000 Subject: [PATCH] add extra backslash character code so it will get interpreted as a single backslash rather than the code getting interpreted as a character. --- pinc/unicode.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinc/unicode.inc b/pinc/unicode.inc index 27dd6904d..a27d9ccf0 100644 --- a/pinc/unicode.inc +++ b/pinc/unicode.inc @@ -229,7 +229,7 @@ function get_unicode_regex_class($codepoint, $lang = 'php') if ($lang == "php") { return '\\x{' . $hex . '}'; } elseif ($lang == "js") { - return '\\u{' . $hex . '}'; + return '\\\\u{' . $hex . '}'; } else { throw new Exception("invalid lang provided: $lang"); }