diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2020-11-15 10:48:29 -0400 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2020-11-15 10:51:22 -0400 |
commit | efb7a0ebdedf27b5fa7610d0d7bc38fb849f67ad (patch) | |
tree | feacdfa7a508efbf9674680bcf2e0975be7858a1 | |
parent | 869515eafa0225a3e748b2165c324567a0d29132 (diff) |
fix automatic "." removal in flash names
-rw-r--r-- | upd8.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) && |