change regular expression in &de_er
authorimiyazaki <imiyazaki>
Thu, 23 Oct 2003 16:01:51 +0000 (16:01 +0000)
committerimiyazaki <imiyazaki>
Thu, 23 Oct 2003 16:01:51 +0000 (16:01 +0000)
Chise_utils/Chise_utils.pm

index 2f40e75..5967978 100644 (file)
@@ -242,7 +242,7 @@ sub de_er{
        $output_char=pack("U",$er);
     }elsif($er=~/^U[\+\-]([a-fA-F\d]+)/){
        $output_char=pack("U",hex($1));
-    }elsif($er=~/(?:I\-)?($er_prefix_re)\-?([0-9a-fA-F]+)/){
+    }elsif($er=~/^(?:I\-)?($er_prefix_re)\-?([0-9a-fA-F]+)$/){
        ($atr,$value)=($1,$2);
        unless($er_alias{$atr}=~/daikanwa|gt/){
            $value=hex($value);