CVS: blootbot/src/Modules Units.pl,1.6,1.7
Brought to you by:
timriker
From: Tim R. <tim...@us...> - 2003-02-21 09:15:31
|
Update of /cvsroot/blootbot/blootbot/src/Modules In directory sc8-pr-cvs1:/tmp/cvs-serv29099/src/Modules Modified Files: Units.pl Log Message: inches3, but not 60.4 Index: Units.pl =================================================================== RCS file: /cvsroot/blootbot/blootbot/src/Modules/Units.pl,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Units.pl 21 Nov 2002 13:33:44 -0000 1.6 +++ Units.pl 21 Feb 2003 09:15:22 -0000 1.7 @@ -115,8 +115,8 @@ return; } # yet another powers hack. - $from =~ s/(\D+)(\d)/$1\^$2/g; - $to =~ s/(\D+)(\d)/$1\^$2/g; + $from =~ s/([[:alpha:]]+)(\d)/$1\^$2/g; + $to =~ s/([[:alpha:]]+)(\d)/$1\^$2/g; &::performStrictReply(sprintf("$from is approximately \002%.6g\002 $to", $q)); } else { |