summaryrefslogtreecommitdiff
path: root/lib/charnames.t
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2019-10-03 11:29:30 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2019-10-03 11:29:30 +0100
commit7ac841d7d0e987409c9d8a239761ab06c6df8e98 (patch)
treecc2b3affe6693ca23a56383aefcd399e6b148a0d /lib/charnames.t
parentd870e48d0f79756c36f71c7a21e6b4e8edf017c0 (diff)
downloadperl-7ac841d7d0e987409c9d8a239761ab06c6df8e98.tar.gz
Use balanced delimiters for multi-line s///gxe
Diffstat (limited to 'lib/charnames.t')
-rw-r--r--lib/charnames.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/charnames.t b/lib/charnames.t
index 723c02fb8b..59ac8b8ac6 100644
--- a/lib/charnames.t
+++ b/lib/charnames.t
@@ -1259,8 +1259,8 @@ is("\N{U+1D0C5}", "\N{BYZANTINE MUSICAL SYMBOL FTHORA SKLIRON CHROMA VASIS}", 'V
s/^\s*#.*//;
next unless $_;
my ($name, $codes) = split ";";
- $codes =~ s/\b 00 ( [0-9A-F]{2} ) \b/
- sprintf("%04X", utf8::unicode_to_native(hex $1))/gxe
+ $codes =~ s{ \b 00 ( [0-9A-F]{2} ) \b }
+ { sprintf("%04X", utf8::unicode_to_native(hex $1)) }gxe
if ord "A" != 65;
my $utf8 = pack("W*", map { hex } split " ", $codes);
is(charnames::string_vianame($name), $utf8, "Verify string_vianame(\"$name\") is the proper utf8");