[SimBot-commits] CVS: simbot/lib/SimBot Util.pm,1.5,1.6
Status: Abandoned
Brought to you by:
kstange
|
From: Pete P. <fou...@us...> - 2007-01-15 02:28:05
|
Update of /cvsroot/simbot/simbot/lib/SimBot In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21454/lib/SimBot Modified Files: Util.pm Log Message: Replace EM DASH with -- and EN DASH with -. Index: Util.pm =================================================================== RCS file: /cvsroot/simbot/simbot/lib/SimBot/Util.pm,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -p -r1.5 -r1.6 --- Util.pm 5 Nov 2006 03:31:31 -0000 1.5 +++ Util.pm 15 Jan 2007 02:28:00 -0000 1.6 @@ -549,6 +549,8 @@ sub timeago { sub char_sub { my $text = $_[0]; + $text =~ s/\N{EM DASH}/--/g; + $text =~ s/(\N{EN DASH}|\N{FIGURE DASH})/-/g; # if only I could do \N{*DASH} $text =~ s/\N{HORIZONTAL ELLIPSIS}/.../g; $text =~ s/\N{TWO DOT LEADER}/../g; $text =~ s/\N{ONE DOT LEADER}/./g; |