bangtags are not for eating >:o

staging
multiple creatures 2019-07-15 15:00:29 -05:00
parent 1c10ce6269
commit 6daeca8a09
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ class PostStatusService < BaseService
# move tags out of body so we can format them later
def extract_tags
chunks = []
@text.split(/^((?:#[\w:._·\-]*\s*)+)/).each do |chunk|
if chunk.start_with?('#')
@text.split(/^((?:#[\w:._·\-]+\s*)+)/).each do |chunk|
if chunk.start_with?('#') && !chunk.start_with?('#!')
@tags |= chunk[1..-1].split(/\s+/)
else
chunks << chunk