[Po4a-commits] r2766 - /trunk/lib/Locale/Po4a/Sgml.pm

mquinson at users.alioth.debian.org mquinson at users.alioth.debian.org
Wed May 20 21:36:03 UTC 2015


Author: mquinson
Date: Wed May 20 21:36:03 2015
New Revision: 2766

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2766
Log:
remove a useless greediness modifier '?' in regex to silence a warning

Modified:
    trunk/lib/Locale/Po4a/Sgml.pm

Modified: trunk/lib/Locale/Po4a/Sgml.pm
URL: http://svn.debian.org/wsvn/po4a/trunk/lib/Locale/Po4a/Sgml.pm?rev=2766&op=diff
==============================================================================
--- trunk/lib/Locale/Po4a/Sgml.pm	(original)
+++ trunk/lib/Locale/Po4a/Sgml.pm	Wed May 20 21:36:03 2015
@@ -413,7 +413,7 @@
         $lvl=1;
         while ($lvl != 0) {
             # Eat comments in the prolog, since there may be some '>' or '<' in them.
-            if ($origfile =~ m/^.{$pos}?(<!--.*?-->)/s) {
+            if ($origfile =~ m/^.{$pos}(<!--.*?-->)/s) {
                 print "Found a comment in the prolog: $1\n" if ($debug{'generic'});
                 $pos += length($1);
                 # take care of the line numbers




More information about the Po4a-commits mailing list