« get me outta code hell

replacer: sigh - 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-11 14:52:02 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-12-11 14:52:02 -0400
commit5735f48c3b5caa22c42ae5190df47e8416fbbad8 (patch)
treeb0f8e5536b7079d1b2537a10b4503be1dda53931 /src/util
parent8d3f6d3895c2cafe902a781f11e7a9d989edbf07 (diff)
replacer: sigh
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 0ce3607d..678933f2 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) {