« 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')
-rwxr-xr-xupd8.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/upd8.js b/upd8.js
index 37b72ae..eec04d7 100755
--- a/upd8.js
+++ b/upd8.js
@@ -992,13 +992,7 @@ const replacerSpec = {
         stop_literal;
 
     const parseOneTextNode = function(input, i, stopAt) {
-        const nodes = parseNodes(input, i, stopAt, true);
-
-        return (
-            nodes.length === 0 ? null :
-            nodes.length === 1 ? nodes[0] :
-            makeNode(i, 'text', nodes.map(node => node.string).join(' '))
-        );
+        return parseNodes(input, i, stopAt, true)[0];
     };
 
     const parseNodes = function(input, i, stopAt, textOnly) {