mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 10:55:40 -04:00
fixing u+?
This commit is contained in:
parent
fed6b273b6
commit
9a970886ee
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ sub speng {
|
|||
|
||||
$x =~ /^0[0-7]+\z/ and return oct $x;
|
||||
|
||||
$x =~ /^(?:[Uu]\+|0[Xx])([[:xdigit:]]+)\z/ || (
|
||||
$x =~ /^(?:[Uu]\+?|0[Xx])([[:xdigit:]]+)\z/ || (
|
||||
length($x) > 1 && $x =~ /^([[:xdigit:]]*[A-Fa-f][[:xdigit:]]*)\z/
|
||||
) and return hex $1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue