aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get_maintainer.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index 9bb094138dd8..b61002dceaba 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -605,7 +605,7 @@ sub parse_email {
605 $name =~ s/^\"|\"$//g; 605 $name =~ s/^\"|\"$//g;
606 $address =~ s/^\s+|\s+$//g; 606 $address =~ s/^\s+|\s+$//g;
607 607
608 if ($name =~ /[^a-z0-9 \.\-]/i) { ##has "must quote" chars 608 if ($name =~ /[^\w \-]/i) { ##has "must quote" chars
609 $name =~ s/(?<!\\)"/\\"/g; ##escape quotes 609 $name =~ s/(?<!\\)"/\\"/g; ##escape quotes
610 $name = "\"$name\""; 610 $name = "\"$name\"";
611 } 611 }
@@ -622,7 +622,7 @@ sub format_email {
622 $name =~ s/^\"|\"$//g; 622 $name =~ s/^\"|\"$//g;
623 $address =~ s/^\s+|\s+$//g; 623 $address =~ s/^\s+|\s+$//g;
624 624
625 if ($name =~ /[^a-z0-9 \.\-]/i) { ##has "must quote" chars 625 if ($name =~ /[^\w \-]/i) { ##has "must quote" chars
626 $name =~ s/(?<!\\)"/\\"/g; ##escape quotes 626 $name =~ s/(?<!\\)"/\\"/g; ##escape quotes
627 $name = "\"$name\""; 627 $name = "\"$name\"";
628 } 628 }