« get me outta code hell

content: transformContent: search for words before absorbing - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-03-20 21:25:53 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-03-20 21:26:21 -0300
commit853dd7ea8811b823d4fc4f2fa14fa3ac44b5416f (patch)
tree69d4421e9e3f1c7c15d048dec4166b62d24e34a6 /src/content
parente3c4b80685417365344ff8705f2b72d4cb8408b8 (diff)
content: transformContent: search for words before absorbing
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/transformContent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index f61865bb..bdfcbeb5 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -264,7 +264,7 @@ export default {
           }
 
           const text = nextNode.data;
-          const match = text.match(/^[.,;:?!…]+/);
+          const match = text.match(/^[.,;:?!…]+(?=.*[a-z])/i);
           const suffix = match?.[0];
           if (suffix) {
             template.setSlot('suffixNormalContent', suffix);