Unicode: Fixing 5.24 upgrade -- Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/^ \s* (?:U \+?|\\(?:u|x{ <-- HERE (?=.*}))) (?<codepoint> [a-f0 (#4427)

-9]{4,6})}? \s* $/ at lib/DDG/Goodie/Unicode.pm line 12
master
Rob Emery 2017-08-25 17:46:36 +01:00 committed by Zaahir Moolla
parent a8b453d410
commit 237fd9fa46
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ use Unicode::Char (); # For name -> codepoint lookup
use Encode qw/encode_utf8/;
use constant {
CODEPOINT_RE => qr/^ \s* (?:U \+?|\\(?:u|x{(?=.*}))) (?<codepoint> [a-f0-9]{4,6})}? \s* $/xi,
CODEPOINT_RE => qr/^ \s* (?:U \+?|\\(?:u|x\{(?=.*\}))) (?<codepoint> [a-f0-9]{4,6})\}? \s* $/xi,
NAME_RE => qr/^ (?<name> [A-Z][A-Z\s]+) $/xi,
CHAR_RE => qr/^ \s* (?<char> .) \s* $/x,
UNICODE_RE => qr/^ (?:unicode|emoji|utf-(?:8|16|32)) \s+ (.+) $/xi,