projects
/
chise
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6aee93
)
remove $prefix and $suffix if $prefix is amp in &de_er.
author
imiyazaki
<imiyazaki>
Fri, 24 Oct 2003 14:09:34 +0000
(14:09 +0000)
committer
imiyazaki
<imiyazaki>
Fri, 24 Oct 2003 14:09:34 +0000
(14:09 +0000)
Chise_utils/Chise_utils.pm
patch
|
blob
|
history
diff --git
a/Chise_utils/Chise_utils.pm
b/Chise_utils/Chise_utils.pm
index
5967978
..
2e13949
100644
(file)
--- a/
Chise_utils/Chise_utils.pm
+++ b/
Chise_utils/Chise_utils.pm
@@
-238,6
+238,7
@@
sub de_er{
$er=~/^(amp|&)?(.+?)(;)?$/
and $prefix=$1,$er=$2,$suffix=$3;
$prefix or $prefix="",$suffix or $suffix="";
+ if($prefix eq 'amp'){$prefix="",$suffix="";}
if($er=~/^\d+$/){
$output_char=pack("U",$er);
}elsif($er=~/^U[\+\-]([a-fA-F\d]+)/){