Skip to content

Commit 5223464

Browse files
committed
Update code for prop change, regen dev file.
1 parent a155b58 commit 5223464

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

unicodetools/data/linkification/dev/LinkEmail.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# LinkEmail.txt
2-
# Date: 2025-12-24, 02:37:15 GMT
2+
# Date: 2025-12-26, 00:32:54 GMT
33
# © 2025 Unicode®, Inc.
44
# Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
55
# For terms of use and license, see https://www.unicode.org/terms_of_use.html
@@ -26,7 +26,8 @@
2626
#
2727
0021 # 1.1 (!) EXCLAMATION MARK
2828
0023..0027 # 1.1 [5] (#..') NUMBER SIGN..APOSTROPHE
29-
002A..0039 # 1.1 [16] (*..9) ASTERISK..DIGIT NINE
29+
002A..002B # 1.1 [2] (*..+) ASTERISK..PLUS SIGN
30+
002D..0039 # 1.1 [13] (-..9) HYPHEN-MINUS..DIGIT NINE
3031
003D # 1.1 (=) EQUALS SIGN
3132
003F # 1.1 (?) QUESTION MARK
3233
0041..005A # 1.1 [26] (A..Z) LATIN CAPITAL LETTER A..LATIN CAPITAL LETTER Z
@@ -1331,4 +1332,4 @@ FFDA..FFDC # 1.1 [3] (ᅳ..ᅵ) HALFWIDTH HANGUL LETTER EU..HALFWIDTH HAN
13311332
3D000..3FC3F # 18.0 [11328] (U+3D000..U+3FC3F) SEAL CHARACTER-3D000..SEAL CHARACTER-3FC3F
13321333
E0100..E01EF # 4.0 [240] (U+E0100..U+E01EF) VARIATION SELECTOR-17..VARIATION SELECTOR-256
13331334

1334-
# Total code points: 162119
1335+
# Total code points: 162118

unicodetools/src/main/java/org/unicode/utilities/LinkUtilities.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.nio.charset.StandardCharsets;
2626
import java.nio.file.Files;
2727
import java.nio.file.Path;
28+
import java.text.ParsePosition;
2829
import java.util.Comparator;
2930
import java.util.EnumMap;
3031
import java.util.EnumSet;
@@ -202,7 +203,10 @@ private LinkTermination(String uset) {
202203
.add('.')
203204
.freeze();
204205
static final UnicodeSet validEmailLocalPart =
205-
new UnicodeSet("[\\p{XID_Continue}-\\p{block=basic_latin}]")
206+
new UnicodeSet(
207+
"[\\p{XID_Continue}-\\p{block=basic_latin}]",
208+
new ParsePosition(0),
209+
VersionedSymbolTable.frozenAt(UNICODE_VERSION))
206210
.addAll(EMAIL_ASCII_INCLUDES)
207211
.freeze();
208212
public static final UnicodeProperty LinkEmail =

0 commit comments

Comments
 (0)