From ddd84a97ad85ea13e9fcb1158a5cbb0db51cb42f Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 17 Jul 2019 17:42:40 -0500 Subject: fix bbcode bracket workaround --- app/lib/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/lib/formatter.rb') diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 97fc3f4bb..326f0655b 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -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 -- cgit