« get me outta code hell

replacer: allow \. through - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-06-24 16:43:36 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-06-24 16:43:36 -0300
commit65c808cb7ae5c605834c0c5382f61d461aaaf420 (patch)
tree1a0f9c279c440a2ba70f340bd47ff7bca2a0fc34
parent5d551bbbf9d7825e99b417eca5fec47daa3de49c (diff)
replacer: allow \. through preview
-rw-r--r--src/replacer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/replacer.js b/src/replacer.js
index bf28061c..779ee78d 100644
--- a/src/replacer.js
+++ b/src/replacer.js
@@ -464,7 +464,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) {