aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-05-09 10:37:33 +1200
committerDavid Phillips <david@sighup.nz>2017-05-09 10:37:33 +1200
commit105d7a3d91cc51db0096e81091979c4e760a46f1 (patch)
tree22514209e47cbdbbaf10c1953fe2aae86b80ca45
parentdc72f231b269530e71f04be7c344a59e6b9675dd (diff)
downloadidalius-105d7a3d91cc51db0096e81091979c4e760a46f1.tar.xz
Remove trailing slash from pretty url
-rwxr-xr-xidalius.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/idalius.pl b/idalius.pl
index 001fb6c..4bf1544 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -95,6 +95,7 @@ sub url_get_title
# remove http(s):// to avoid triggering other poorly configured bots
$shorturl =~ s,^https?://,,g;
+ $shorturl =~ s,/$,,g;
my $composed_title = "$title ($shorturl)";
return $composed_title;