[Po4a-commits] po4a/lib/Locale/Po4a Sgml.pm,1.48,1.49

Nicolas FRANCOIS po4a-devel@lists.alioth.debian.org
Wed, 11 May 2005 23:05:31 +0000


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv3430/lib/Locale/Po4a

Modified Files:
	Sgml.pm 
Log Message:
Be stricter on the regex that match entities.


Index: Sgml.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Sgml.pm,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- Sgml.pm	11 May 2005 23:00:14 -0000	1.48
+++ Sgml.pm	11 May 2005 23:05:29 -0000	1.49
@@ -533,7 +533,7 @@
     }
 
     #   Change the entities including files in the document
-    while ($origfile =~ /^(.*?)&([^;\s]*);(.*)$/s) {
+    while ($origfile =~ /^(.*?)&([A-Za-z_:][-_:.A-Za-z0-9]*);(.*)$/s) {
 	if (defined $entincl{$2}) {
 	    my ($begin,$key,$end)=($1,$2,$3);
 	    $end =~ s/^\s*\n//s;