about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-17 17:42:40 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-17 17:42:40 -0500
commitddd84a97ad85ea13e9fcb1158a5cbb0db51cb42f (patch)
treecf477f21ca44e2512273b405a2033482428a5a7b /app
parent54c3ac4aba6a821fd24a61aabd6dbc60808bf4ee (diff)
fix bbcode bracket workaround
Diffstat (limited to 'app')
-rw-r--r--app/lib/formatter.rb2
1 files changed, 1 insertions, 1 deletions
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