diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-09-19 23:35:58 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-09-19 23:35:58 -0500 |
commit | 3d133d164146878048d703bc608f3ad6f6506ae4 (patch) | |
tree | 3c5914648cfed341c84d0a6d3effdf992f4206b3 /app/services | |
parent | f14d5b7ee17788916534b6fc6253a01bdf09cf2a (diff) |
when converting in-body tags to out-of-body tags, only strip lines that are nothing but in-body tags
Diffstat (limited to 'app/services')
-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 |