aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-02-07 00:32:17 +0100
committerache <ache@ache.one>2018-02-07 00:32:17 +0100
commit00df81da7a9f5c9c407437c77e347d31a1c9a99e (patch)
tree1821b806aaf87fc8d9ac63813359fc7758e29553
parentadd tests with AVA (diff)
resolve the empty test
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index 538ccab..5b4ec1b 100644
--- a/app.js
+++ b/app.js
@@ -147,7 +147,7 @@ function plugin() {
prop.type = 'text';
}
- prop.placeholder = subvalue.replace(/^_*/g, '').replace(/_*$/g, '');
+ prop.placeholder = subvalue.replace(/^_*/g, '').replace(/_*$/g, '') || undefined;
if (index < length) {
return eat(START + subvalue.slice(1) + END.slice(1) + letsEat)({