Fix neohabitat json preprocessor

This commit is contained in:
Jeremy Penner 2024-01-06 00:11:07 -05:00
parent 93d05750bc
commit fcf52e08c5

View file

@ -38,7 +38,7 @@ function templateStringJoins(data) {
var quotesRemoved = trimTextLine.replace(/(^")|("$)/g, ''); var quotesRemoved = trimTextLine.replace(/(^")|("$)/g, '');
replacementText.push(quotesRemoved); replacementText.push(quotesRemoved);
} }
return '"{0}"'.format(replacementText.join('')); return `"${replacementText.join('')}"`
} }
); );
} }
@ -55,7 +55,7 @@ function templateConstantJoins(data) {
replacementText.push(joinReplacements[trimHabConst]); replacementText.push(joinReplacements[trimHabConst]);
} }
} }
return '"{0}"'.format(replacementText.join('')); return `"${replacementText.join('')}"`
}); });
} }