diff options
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index d8e47cb8d..a48b87155 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -1193,8 +1193,6 @@ class Bangtags end end - chunk.gsub!("#\ufdd6!", '#!') unless chunk.blank? || chunk.frozen? - if chunk.present? && @tf_cmds.present? @tf_cmds.each do |tf_cmd| next if chunk.nil? || tf_cmd[0].nil? @@ -1313,6 +1311,8 @@ class Bangtags @user.save text = @chunks.join + text.gsub!("#\ufdd6!", '#!') + text.gsub!(/\ufdd3(.*)\ufdd4/m, '<span aria-hidden="true">\1</span>') text.gsub!(/\n\n+/, "\n") if @crunch_newlines text.strip! text = text.split("\n").map(&:strip).join("\n") if @strip_lines |