aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hipchat-stfu.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/hipchat-stfu.pl b/hipchat-stfu.pl
index c23b678..413380a 100644
--- a/hipchat-stfu.pl
+++ b/hipchat-stfu.pl
@@ -21,6 +21,9 @@ sub prettify_hipchat {
# Trim whitespace
$input =~ s/^(\s| )+|(\s| )+$//g;
+ # Trim whitespace between words
+ $input =~ s/(\s| ){2,}/ /g;
+
return $input;
};