Skip to content

Commit 5bbdc90

Browse files
authored
Support the prefixes u and uni in character.jsp (#1323)
1 parent b0362cf commit 5bbdc90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnicodeJsps/src/main/java/org/unicode/jsp/UnicodeJsp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public static int[] parseCode(String text, String nextButton, String previousBut
255255
// of hexadecimal character escape and numeric literal syntaxes.
256256
Matcher matcher =
257257
Pattern.compile(
258-
"(?:U\\+|\\\\[ux]\\{?|&#x|0x|16#|&H)?([0-9a-f'_]+)[\\};#]?",
258+
"(?:U\\+|\\\\[ux]\\{?|&#x|0x|16#|&H|u(?:ni)?)?([0-9a-f'_]+)[\\};#]?",
259259
Pattern.CASE_INSENSITIVE)
260260
.matcher(trimmed);
261261
String digits = matcher.matches() ? matcher.group(1).replaceAll("['_]", "") : null;

0 commit comments

Comments
 (0)