diff options
-rwxr-xr-x | upd8.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js index 8d22f645..6986ac82 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; }; |