Skip to content

Commit c1b9fac

Browse files
committed
Add y/n as boolean options
1 parent 2070c5f commit c1b9fac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commander.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ function commanderNotification(text) {
110110
}
111111

112112
function parseAsBoolean(input) {
113-
let yes = ['yes', 'true', 'on', '1'];
114-
let no = ['no', 'false', 'off', '0'];
113+
let yes = ['yes', 'true', 'on', '1', 'y'];
114+
let no = ['no', 'false', 'off', '0', 'n'];
115115
if (yes.includes(input.toLowerCase())) return true;
116116
if (no.includes(input.toLowerCase())) return false;
117117
return null;

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Commander",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Simple commands for Chrome, straight from the omnibox.",
55
"permissions": ["tabs", "http://*/*", "https://*/*"],
66
"omnibox": {"keyword": "#"},

0 commit comments

Comments
 (0)