read-cli-input
Advanced tools
Comparing version
@@ -25,2 +25,6 @@ var onKeyPress = require("on-key-press"); | ||
if (/(^|\n)\n\n$/.test(input)) { | ||
return done(); | ||
} | ||
if (key && key.name == 'enter') { | ||
@@ -33,6 +37,2 @@ if (--lines <= 0) { | ||
} | ||
if (/(^|\n)\n\n$/.test(input)) { | ||
done(); | ||
} | ||
} | ||
@@ -39,0 +39,0 @@ } |
{ | ||
"name": "read-cli-input", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Read user input from CLI for specified amount of lines.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
2855
0.25%