Rendered JS

This commit is contained in:
nicco
2018-02-09 15:01:09 +01:00
parent d90f695c9e
commit 47a23b656e
6 changed files with 88 additions and 108 deletions

2
dist/parser.js vendored
View File

@@ -2,7 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
const options_1 = require("./options");
function computeParts(parts, data = {}) {
if (parts.length === 0)
if (parts === undefined || parts.length === 0)
return '';
return computePart(parts[0], data) + computeParts(parts.slice(1), data);
}