From 5ba69d08849773c459086a0f96484046a845159e Mon Sep 17 00:00:00 2001 From: "Martin Helmling mh@waldpark.octosoft.eu" Date: Tue, 23 Feb 2016 09:51:26 +0100 Subject: [PATCH] Warnung in regex eliminiert Folgende Meldung: Useless use of greediness modifier '?' in regex; marked by <-- HERE in m/(\b\S{60}? <-- HERE )(\S.*?\b)/ at modules/override/PDF/Table.pm line 334. Das .*? ersetzt durch .+ --- modules/override/PDF/Table.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/override/PDF/Table.pm b/modules/override/PDF/Table.pm index 81bf5d3e4..7bb1e1500 100644 --- a/modules/override/PDF/Table.pm +++ b/modules/override/PDF/Table.pm @@ -331,7 +331,7 @@ sub table { do { $myone = 0; # This RegEx will split any word that is longer than {25} symbols - $row->[$j] =~ s#(\b\S{$max_word_len}?)(\S.*?\b)# $1 $2#; + $row->[$j] =~ s#(\b\S{$max_word_len}?)(\S.+\b)# $1 $2#; $myone = 1 if ( defined $2 ); } while( $myone ); $row->[$j] =~ s/^\s+//; -- 2.20.1