diff options
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 |
commit | 853dd7ea8811b823d4fc4f2fa14fa3ac44b5416f (patch) | |
tree | 69d4421e9e3f1c7c15d048dec4166b62d24e34a6 /src | |
parent | e3c4b80685417365344ff8705f2b72d4cb8408b8 (diff) |
content: transformContent: search for words before absorbing
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/transformContent.js | 2 |
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); |