diff options
-rw-r--r-- | app/services/post_status_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb index 6377248e5..572f91d51 100644 --- a/app/services/post_status_service.rb +++ b/app/services/post_status_service.rb @@ -139,7 +139,7 @@ class PostStatusService < BaseService @text.gsub!('##', "\uf669") @tags |= Extractor.extract_hashtags(@text) @text.strip! - @text.gsub!(/^(?:#[\w:._·\-]+\s*)+|(?:#[\w:._·\-]+\s*)+\Z/, '') + @text.gsub!(/^(?:#[\w:._·\-]+\s*)+$/, '') @text.gsub!("\uf669", "##") @text.gsub!("\uf666", "#") end |