]> granicus.if.org Git - docbook-dsssl/commitdiff
Changed \w+ to $w in the regexp that matches entity declarations (indexentitydecl...
authorMauritz Jeanson <mj@johanneberg.com>
Wed, 12 Dec 2007 20:01:02 +0000 (20:01 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Wed, 12 Dec 2007 20:01:02 +0000 (20:01 +0000)
The reason is that \w+ does not match entity names that contain periods. See bug #1847825.

releasetools/xslns-build

index f36ac2e3effe39cb0e5425b9006d1961c7762900..1bb9bdadedd6442cc0db84577f41fd5e40a7d13b 100755 (executable)
@@ -375,7 +375,7 @@ sub indexentitydecl {
 
   my $newstring = '';
 
-  while ( $string =~ m@^(.*?)(<!ENTITY\s+(\w+)\s+('|"))(.*?)(\4\s*>)@sg  ) {
+  while ( $string =~ m@^(.*?)(<!ENTITY\s+($w)\s+('|"))(.*?)(\4\s*>)@sg  ) {
     my $before = $1;
     my $entitystart = $2;
     my $entityname = $3;