picomatch
picomatch copied to clipboard
fix: exception when glob pattern contains `constructor`
Picomatch will throw exceptions when the glob contains any Object instance property names.
Examples: constructor, __proto__, toString
Related to issue: https://github.com/streetsidesoftware/cspell/issues/7194
@jonschlinkert,
Is there any way this can make it in? There is a similar fix in #132, but it is slower.
coverage: 91.968%. remained the same when pulling a9e2dd27a3bc1e6298ba005c0bc8587162eefa18 on Jason3S:jdent-object-properties into bf6a33bd3db990edfbfd20b3b160eed926cd07dd on micromatch:master.
@jonschlinkert, could you please take a look at this when you have a moment?
I spent some time debugging an error with tsup --watch in my project and traced it back to this issue.
@jonschlinkert Thank you.