summaryrefslogtreecommitdiff
path: root/get.pl
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-21 16:37:29 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-21 16:37:29 +0200
commitb068b8b11002dd9d6e8fb51f7b5738e1f79998d9 (patch)
tree98c414b64426a78397f18a115ae6ed5920bf49f0 /get.pl
parent1978464153fec8ff495aa9885826354dda5707c8 (diff)
urgh punctuation
Diffstat (limited to 'get.pl')
-rwxr-xr-xget.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/get.pl b/get.pl
index d5c2be6..2081bb8 100755
--- a/get.pl
+++ b/get.pl
@@ -10,7 +10,7 @@ sub sanitize ($) {
$s =~ s/^\s+//;
$s =~ s/\s+$//;
$s =~ s/\.[^.]+$//g;
- $s =~ s/\W//g;
+ $s =~ s/[-\[\]\(\)\+\*\\\/\'\"\`\!\@\#\$\%\^\&]//g
$s =~ s/\s+/_/g;
if (length($s) == 0) {
print "fn is empty";