Package to replace
is-extglob
Suggested replacement(s)
const isExtglob = (str) => {
if (typeof str !== 'string' || !str) return false
let match
while ((match = /(\\).|([@?!+*]\(.*\))/g.exec(str))) {
if (match[2]) return true
str = str.slice(match.index + match[0].length)
}
return false
}
For string-only : const isExtglob = (str) => /[@?!+*](/.test(str)
Manifest type
micro-utility (tiny utility replaceable with native code or removal)
Rationale
inlinable
Availability
No response
Code example (optional)
Package to replace
is-extglobSuggested replacement(s)
For string-only : const isExtglob = (str) => /[@?!+*](/.test(str)
Manifest type
micro-utility (tiny utility replaceable with native code or removal)
Rationale
inlinable
Availability
No response
Code example (optional)