From efb7a0ebdedf27b5fa7610d0d7bc38fb849f67ad Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 15 Nov 2020 10:48:29 -0400 Subject: fix automatic "." removal in flash names --- upd8.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upd8.js b/upd8.js index 2404a22c..5c76db2f 100644 --- a/upd8.js +++ b/upd8.js @@ -284,7 +284,7 @@ function transformInline(text) { const flash = getLinkedFlash(ref); if (flash) { let name = flash.name; - const nextCharacter = text[offset + 1]; + const nextCharacter = text[offset + match.length]; const lastCharacter = name[name.length - 1]; if ( ![' ', '\n', '<'].includes(nextCharacter) && -- cgit 1.3.0-6-gf8a5