From f0feab57384366f06dc3c4f025394405344bc2ff Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 21 Dec 2017 13:39:13 -0500 Subject: [PATCH] fix typo --- lib/templates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates.js b/lib/templates.js index 93274d1..15b78ee 100644 --- a/lib/templates.js +++ b/lib/templates.js @@ -38,7 +38,7 @@ function create_templates() { const start = template.indexOf('%sapper', i); if (start === -1) { - res.end(template.slice(start)); + res.end(template.slice(i)); return; }