diff options
-rw-r--r-- | app/lib/sanitize_config.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb index 697d88fd3..e7b70f078 100644 --- a/app/lib/sanitize_config.rb +++ b/app/lib/sanitize_config.rb @@ -74,8 +74,8 @@ class Sanitize return end - # strip trailing slashes - text.sub!(/\/+\Z/, '') + # strip trailing punctuation + text.sub!(/\p{Punct}+\Z/, '') # href starts with link text? return if href.start_with?(text) |