Skip to content

Commit 97ca3e2

Browse files
committed
UCD.pm: Clean up some pattern boundary conditions
Like using \z instead of $, and some were missing. Spotted by Lukas Mai
1 parent 9dd7e25 commit 97ca3e2

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

charclass_invlists.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436006,7 +436006,7 @@ static const U8 WB_table[23][23] = {
436006436006
#endif /* defined(PERL_IN_REGEXEC_C) */
436007436007

436008436008
/* Generated from:
436009-
* 3d3ab72e1b33c2e0467491bc7ff92c2bc35e0533ed7f76ed0cd4f81f1f12fd71 lib/Unicode/UCD.pm
436009+
* 92b3b0b73e402a9efee67f10380c390638c080fdde7430665e57abdac2fa976f lib/Unicode/UCD.pm
436010436010
* eb840f36e0a7446293578c684a54c6d83d249abde7bdd4dfa89794af1d7fe9e9 lib/unicore/ArabicShaping.txt
436011436011
* 333ae1e99db0504ca8a046a07dc45b5e7aa91869c685e6bf955ebe674804827a lib/unicore/BidiBrackets.txt
436012436012
* b4b9e1d87d8ea273613880de9d2b2f0b0b696244b42152bfa0a3106e7d983a20 lib/unicore/BidiMirroring.txt

lib/Unicode/UCD.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3848,7 +3848,7 @@ RETRY:
38483848
# below to add in the algorithmic-defined name entries.
38493849
# And NFKCCF NFKCSCF need conversion, so handle those here too.
38503850
if (ref $swash eq ""
3851-
|| $swash->{'TYPE'} =~ / ^ To (?: Blk | Na | NFKCS?CF ) $ /x)
3851+
|| $swash->{'TYPE'} =~ / ^ To (?: Blk | Na | NFKCS?CF ) \z /x)
38523852
{
38533853

38543854
# Get the short name of the input property, in standard form
@@ -4045,11 +4045,11 @@ RETRY:
40454045
}
40464046
$swash = \%decomps;
40474047
}
4048-
elsif ($second_try !~ /nfkcs?cf/) { # Don't know this property. Fail.
4048+
elsif ($second_try !~ /^nfkcs?cf\z/) { # Don't know this property. Fail.
40494049
return;
40504050
}
40514051

4052-
if ($second_try =~ / ^ (?: nfkcs?cf | dm ) $ /x) {
4052+
if ($second_try =~ / ^ (?: nfkcs?cf | dm ) \z /x) {
40534053

40544054
# The 'nfkccf' property is stored in the old format for backwards
40554055
# compatibility for any applications that has read its file
@@ -4180,7 +4180,7 @@ RETRY:
41804180
} # End of loop constructing the converted list
41814181

41824182
# Finish up the data structure for our converted swash
4183-
my $type = ($second_try =~ /\b ( nfkcs?cf ) \b /x)
4183+
my $type = ($second_try =~ / ^ ( nfkcs?cf ) \z /x)
41844184
? 'To' . $1
41854185
: 'ToDm';
41864186
$revised_swash{'LIST'} = $list;

lib/unicore/uni_keywords.pl

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regcharclass.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regexp_constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define MAX_FOLD_FROMS 3
3030

3131
/* Generated from:
32-
* 3d3ab72e1b33c2e0467491bc7ff92c2bc35e0533ed7f76ed0cd4f81f1f12fd71 lib/Unicode/UCD.pm
32+
* 92b3b0b73e402a9efee67f10380c390638c080fdde7430665e57abdac2fa976f lib/Unicode/UCD.pm
3333
* eb840f36e0a7446293578c684a54c6d83d249abde7bdd4dfa89794af1d7fe9e9 lib/unicore/ArabicShaping.txt
3434
* 333ae1e99db0504ca8a046a07dc45b5e7aa91869c685e6bf955ebe674804827a lib/unicore/BidiBrackets.txt
3535
* b4b9e1d87d8ea273613880de9d2b2f0b0b696244b42152bfa0a3106e7d983a20 lib/unicore/BidiMirroring.txt

uni_keywords.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)