mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-08 01:45:42 -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 =~ /^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/
|
length($x) > 1 && $x =~ /^([[:xdigit:]]*[A-Fa-f][[:xdigit:]]*)\z/
|
||||||
) and return hex $1;
|
) and return hex $1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue