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: Mason James <mtj@kohaaloha.com>
This commit is contained in:
parent
329d9c4cf5
commit
4b42a0ecbf
|
|
@ -57,7 +57,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