@inquirer/confirm
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -15,5 +15,5 @@ "use strict"; | ||
let answer = config.default !== false; | ||
if (/^(y|yes)?/i.test(value)) | ||
if (/^(y|yes)/i.test(value)) | ||
answer = true; | ||
else if (/^(n|no)?/i.test(value)) | ||
else if (/^(n|no)/i.test(value)) | ||
answer = false; | ||
@@ -20,0 +20,0 @@ if (typeof config.transformer === 'function') { |
@@ -15,5 +15,5 @@ "use strict"; | ||
let answer = config.default !== false; | ||
if (/^(y|yes)?/i.test(value)) | ||
if (/^(y|yes)/i.test(value)) | ||
answer = true; | ||
else if (/^(n|no)?/i.test(value)) | ||
else if (/^(n|no)/i.test(value)) | ||
answer = false; | ||
@@ -20,0 +20,0 @@ if (typeof config.transformer === 'function') { |
{ | ||
"name": "@inquirer/confirm", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Inquirer confirm prompt", | ||
@@ -86,3 +86,3 @@ "main": "./dist/cjs/index.js", | ||
}, | ||
"gitHead": "d48ecde923e5875de631f7b50f67cfaf00384947" | ||
"gitHead": "a23c4cedbcb8f990a443d6b4c38d75a3aa8c9a99" | ||
} |
@@ -20,3 +20,3 @@ # `@inquirer/confirm` | ||
const answer = await confirm({ message: 'Enter your name' }); | ||
const answer = await confirm({ message: 'Continue?' }); | ||
``` | ||
@@ -23,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9034