mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-07 05:59:02 +00:00
allow empty strings as option values
This commit is contained in:
parent
5f52f520f4
commit
cc1418ee5d
@ -170,7 +170,7 @@ export const is = async (value, type, { extension = '' } = {}) => {
|
||||
case 'number':
|
||||
return typeof value === type && extension;
|
||||
case 'string':
|
||||
return typeof value === type && value.length && extension;
|
||||
return typeof value === type && extension;
|
||||
case 'alphanumeric':
|
||||
case 'uuid':
|
||||
case 'semver':
|
||||
|
Loading…
Reference in New Issue
Block a user