« get me outta code hell

replacer: fix escaping tildes in content - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-12-05 11:30:36 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-12-05 11:30:36 -0400
commitcf52f64116f395fe4d7e2d2937877300ec182575 (patch)
tree4191f8a290647e30d72bc88e11c9759f1922d647 /src/util
parent8c0fa52e3356f19bfd18f035244f4f5aa88ff4b3 (diff)
replacer: fix escaping tildes in content
Diffstat (limited to 'src/util')
-rw-r--r--src/util/replacer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/replacer.js b/src/util/replacer.js
index d0c20ca4..0ce3607d 100644
--- a/src/util/replacer.js
+++ b/src/util/replacer.js
@@ -428,7 +428,7 @@ export function squashBackslashes(text) {
   // a set of characters where the backslash carries meaning
   // into later formatting (i.e. markdown). Note that we do
   // NOT compress double backslashes into single backslashes.
-  return text.replace(/([^\\](?:\\{2})*)\\(?![\\*_-])/g, '$1');
+  return text.replace(/([^\\](?:\\{2})*)\\(?![\\*_-~])/g, '$1');
 }
 
 export function restoreRawHTMLTags(text) {