diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-17 21:46:26 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-17 21:46:26 -0600 |
commit | 5cd462c59ddac95dbdbabbbdf640018c7c42a12c (patch) | |
tree | 52fcdbd66a0d5b2b6fe2b50224467b30cc0772ea | |
parent | 5aeb5bc7260f7a72f595d398c1d0ff65706f65fc (diff) |
fix the `bangtag` bangtag but actually
-rw-r--r-- | app/lib/bangtags.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index bbbec8315..54122b696 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -86,6 +86,7 @@ class Bangtags chunk.gsub("#\ufdd6!", '#!') @chunks << chunk elsif chunk.starts_with?("#!") + orig_chunk = chunk chunk.sub!(/(\\:)?+:+?!#\Z/, '\1') chunk.sub!(/{(.*)}\Z/, '\1') @@ -481,7 +482,7 @@ class Bangtags @post_cmds.push(['media', media_idx, media_cmd]) when 'bangtag' - chunk = '#!' + chunk = orig_chunk when 'join' chunk = nil next if cmd[1].nil? |