about summary refs log tree commit diff
path: root/app/lib/formatter.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-10-10 21:02:15 -0500
committermultiple creatures <dev@multiple-creature.party>2019-10-10 21:02:15 -0500
commit81988e386d36894b2389afb94e3bfcb8c5ffaa5a (patch)
treee98d671991598889d9eadb9eddea3d95d704cf65 /app/lib/formatter.rb
parent8a8e74fc2b45bff79d5d96207bc0ab8a9f30c47e (diff)
stopped using private-use codepoints as formatting placeholders (resolves #9)
Diffstat (limited to 'app/lib/formatter.rb')
-rw-r--r--app/lib/formatter.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb
index b405a4e08..e21ff07d0 100644
--- a/app/lib/formatter.rb
+++ b/app/lib/formatter.rb
@@ -257,7 +257,7 @@ class Formatter
   end
 
   def format_screenreader(html)
-    html.gsub(/\uf333(.*)\uf334/m, '<span aria-hidden="true">\1</span>')
+    html.gsub(/\ufdd3(.*)\ufdd4/m, '<span aria-hidden="true">\1</span>')
   end
 
   def format_console(html)
@@ -372,9 +372,9 @@ class Formatter
 
   def bbcode_formatter(html)
     begin
-      html.gsub!(/\[(?=[^\w\/])/, "\uf666")
+      html.gsub!(/\[(?=[^\w\/])/, "\ufdd6")
       html = html.bbcode_to_html(false, BBCODE_TAGS, :enable, *BBCODE_TAGS.keys)
-      html.gsub!("\uf666", '[')
+      html.gsub!("\ufdd6", '[')
     rescue Exception => e
     end
     html