UNPKG

497 BTypeScriptView Raw
1export declare function escapeRegExp(string: string): string;
2/**
3 * https://github.com/babel/babel/blob/7acc68a86b70c6aadfef28e10e83d0adb2523807/packages/babel-core/src/config/pattern-to-regex.ts
4 *
5 * Implement basic pattern matching that will allow users to do the simple
6 * tests with * and **. If users want full complex pattern matching, then can
7 * always use regex matching, or function validation.
8 */
9export declare function pathPatternToRegex(pattern: string, dirname: string): RegExp;