1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 10:55:40 -04:00

fixing u+?

This commit is contained in:
Ryan Voots 2009-12-08 12:46:00 -05:00
parent fed6b273b6
commit 9a970886ee

View file

@ -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;