diff --git a/scripts/rename.pl b/scripts/rename.pl index 848958034..0db312b7d 100755 --- a/scripts/rename.pl +++ b/scripts/rename.pl @@ -38,10 +38,10 @@ for my $name (@names) { $subst{$old} = $new; } -my $string = qr/".*?(??@^_`{|}~\$\/\[\\\]]+|"/; +my $symbols = qr/[-!#$%&'()*+,.\/:;<=>?@[\\\]^_`{|}~]+|"/; # if we replace inside strings, we don't consider them a token my $token = $do_strings ? qr/$space|$idnum|$symbols/ @@ -86,7 +86,7 @@ while( my $filename = shift ) } if( %warnings ) { - print "\nWarning: lines skipped due to unexpected charaacters:\n"; + print "\nWarning: lines skipped due to unexpected characters:\n"; for my $filename (sort keys %warnings) { print "in $filename:\n"; print for @{ $warnings{$filename} };