From 00df81da7a9f5c9c407437c77e347d31a1c9a99e Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 7 Feb 2018 00:32:17 +0100 Subject: resolve the empty test --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)({ -- cgit v1.2.3