inquirer-command-prompt
Advanced tools
Comparing version
@@ -246,3 +246,4 @@ const chalk = require('chalk') | ||
cmds = cmds.reduce((sum, el) => { | ||
RegExp(`^${line}`).test(el) && sum.push(el) && (max = Math.max(max, el.length)) | ||
let sanitizedLine = line.replace(/[\\\.\+\*\?\^\$\[\]\(\)\{\}\/\'\#\:\!\=\|]/ig, "\\$&") | ||
RegExp(`^${sanitizedLine}`).test(el) && sum.push(el) && (max = Math.max(max, el.length)) | ||
return sum | ||
@@ -249,0 +250,0 @@ }, []) |
{ | ||
"name": "inquirer-command-prompt", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "scripts": { |
22644
0.46%475
0.21%