Comparing version 0.1.4 to 0.1.5
@@ -146,3 +146,3 @@ 'use strict'; | ||
var optional = value.endsWith('?'); | ||
var optional = value.endsWith('?') && value.length > 1; | ||
@@ -149,0 +149,0 @@ if (optional) { |
{ | ||
"name": "is-hotkey", | ||
"description": "Check whether a browser event matches a hotkey.", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/ianstormtaylor/is-hotkey.git", |
@@ -130,3 +130,3 @@ | ||
for (let value of values) { | ||
const optional = value.endsWith('?') | ||
const optional = value.endsWith('?') && value.length > 1; | ||
@@ -133,0 +133,0 @@ if (optional) { |
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
13813