From faf86a6a666f0af3b443af681a13add399a39b9d Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 17 Jan 2018 00:33:57 +0100 Subject: Password support --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 7726250..4fd014c 100644 --- a/app.js +++ b/app.js @@ -175,7 +175,9 @@ function plugin() { /* istanbul ignore if - never used (yet) */ if (silent) return true; - prop['type'] = 'text'; + if( prop['type'] != 'password' ) + prop['type'] = 'text'; + prop['placeholder'] = subvalue.replace(/^_*/g, '').replace(/_*$/g, ''), console.log(prop); -- cgit v1.2.3