aboutsummaryrefslogtreecommitdiff
path: root/Plugin/URL_Title.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin/URL_Title.pm')
-rw-r--r--Plugin/URL_Title.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm
index 5774528..1d0056e 100644
--- a/Plugin/URL_Title.pm
+++ b/Plugin/URL_Title.pm
@@ -64,6 +64,9 @@ sub message
$p->parse($html);
die "Error: $!\n" if $!;
+ $title =~ s/\s+/ /g;
+ $title =~ s/(^\s+|\s+$)//g;
+
utf8::upgrade($title);
return unless $title;