« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js2
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) &&