source: node_modules/minimatch/dist/esm/escape.d.ts@ 81bc7da

finki-main main
Last change on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 776 bytes
RevLine 
[81bc7da]1import { MinimatchOptions } from './index.js';
2/**
3 * Escape all magic characters in a glob pattern.
4 *
5 * If the {@link MinimatchOptions.windowsPathsNoEscape}
6 * option is used, then characters are escaped by wrapping in `[]`, because
7 * a magic character wrapped in a character class can only be satisfied by
8 * that exact character. In this mode, `\` is _not_ escaped, because it is
9 * not interpreted as a magic character, but instead as a path separator.
10 *
11 * If the {@link MinimatchOptions.magicalBraces} option is used,
12 * then braces (`{` and `}`) will be escaped.
13 */
14export declare const escape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
15//# sourceMappingURL=escape.d.ts.map
Note: See TracBrowser for help on using the repository browser.