fix bbcode bracket workaround

staging
multiple creatures 2019-07-17 17:42:40 -05:00
parent 54c3ac4aba
commit ddd84a97ad
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ class Formatter
def bbcode_formatter(html)
begin
html.gsub!(/\[(?=\W)/, "\uf666")
html.gsub!(/\[(?=[^\w\/])/, "\uf666")
html = html.bbcode_to_html(false, BBCODE_TAGS, :enable, *BBCODE_TAGS.keys)
html.gsub!("\uf666", '[')
rescue Exception => e