{"version":3,"file":"globs.mjs","names":[],"sources":["../src/globs.ts"],"sourcesContent":["import globToRegexp from 'glob-to-regexp';\n\nexport const globs = {\n  toRegexp: (pattern: string): RegExp => {\n    try {\n      return globToRegexp(pattern);\n    } catch (e: any) {\n      throw new Error(\n        `Invalid pattern: ${pattern}.\\nConsult the documentation of glob-to-regexp here: https://www.npmjs.com/package/glob-to-regexp.\\n${e.message}`,\n      );\n    }\n  },\n};\n"],"mappings":";;;AAEA,MAAa,QAAQ,EACnB,WAAW,YAA4B;CACrC,IAAI;EACF,OAAO,aAAa,OAAO;CAC7B,SAAS,GAAQ;EACf,MAAM,IAAI,MACR,oBAAoB,QAAQ,sGAAsG,EAAE,SACtI;CACF;AACF,EACF"}