UNPKG

zeptomatch-is-static

Version:

A little utility for checking if a glob is fully static.

10 lines (9 loc) 190 B
/* MAIN */ const isStatic = (() => { const re = /^(?:\\$|\\.|[^*?!^{}[\]\\])*$/s; return (glob) => { return re.test(glob); }; })(); /* EXPORT */ export default isStatic;