« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xupd8.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index 8d22f64..6986ac8 100755
--- a/upd8.js
+++ b/upd8.js
@@ -1033,6 +1033,9 @@ const replacerSpec = {
             const match = input.slice(i).match(regexp);
 
             if (!match) {
+                iString = i;
+                string = input.slice(i, input.length);
+                pushTextNode();
                 break;
             }
 
@@ -1158,7 +1161,6 @@ const replacerSpec = {
             }
         }
 
-        pushTextNode();
         return nodes;
     };