summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xget.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/get.pl b/get.pl
index 42a7983..2713fe2 100755
--- a/get.pl
+++ b/get.pl
@@ -8,6 +8,8 @@ sub sanitize ($) {
$s =~ s/\W/_/g;
$s =~ s/[\(\)]/_/g;
$s =~ s/\s+/_/g;
+ $s =~ s/_+$//g;
+ $s =~ s/^_+//g;
if (length($s) == 0) {
print "fn is empty";
exit(1);