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 <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> (cherry picked from commit63c6eaca8d) Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> (cherry picked from commit3166154e87) Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
9ccb3ce5c5
commit
4806444c4f
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue