From c6a8b367a5a1a243e5112a33aedee9e9147f7a0f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 16 Apr 2021 12:43:14 -0300 Subject: fix final text not being added as node --- upd8.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }; -- cgit 1.3.0-6-gf8a5