Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
14 lines
760 B
Plaintext
14 lines
760 B
Plaintext
import { GlobOptions } from './glob.js';
|
|
/**
|
|
* Return true if the patterns provided contain any magic glob characters,
|
|
* given the options provided.
|
|
*
|
|
* Brace expansion is not considered "magic" unless the `magicalBraces` option
|
|
* is set, as brace expansion just turns one string into an array of strings.
|
|
* So a pattern like `'x{a,b}y'` would return `false`, because `'xay'` and
|
|
* `'xby'` both do not contain any magic glob characters, and it's treated the
|
|
* same as if you had called it on `['xay', 'xby']`. When `magicalBraces:true`
|
|
* is in the options, brace expansion _is_ treated as a pattern having magic.
|
|
*/
|
|
export declare const hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
|
|
//# sourceMappingURL=has-magic.d.ts.map |