From 4806444c4fac3c853dcf650864c932fd324cf674 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 19 May 2017 11:39:24 +0200 Subject: [PATCH] Bug 18536: [QA Follow-up] Tiny regex simplification Simplify regex for removing table name. No need to escape a dot between the square brackets. No need to specify a number of 1 between parentheses. Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall (cherry picked from commit 63c6eaca8d649cb7864b90e5e1ee9ac019daffdf) Signed-off-by: Katrin Fischer (cherry picked from commit 3166154e876b871ed97c1eaf1f02c0c26fc65c26) Signed-off-by: Julian Maurice --- serials/lateissues-export.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/lateissues-export.pl b/serials/lateissues-export.pl index ab524ea61f..d87793307a 100755 --- a/serials/lateissues-export.pl +++ b/serials/lateissues-export.pl @@ -56,7 +56,7 @@ while ( $content =~ / $header =~ s/^\s+|\s+$//g; # Trim whitespaces push @headers, $header; - $field =~ s/[^\.]*\.{1}//; # Remove the table name if exists. + $field =~ s/[^.]+\.//; # Remove the table name if exists. $field =~ s/^\s+|\s+$//g; # Trim whitespaces push @fields, $field; } -- 2.39.5