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>
$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;
}