123456789101112131415161718192021222324252627 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.hasMagic = void 0;
- const minimatch_1 = require("minimatch");
- const hasMagic = (pattern, options = {}) => {
- if (!Array.isArray(pattern)) {
- pattern = [pattern];
- }
- for (const p of pattern) {
- if (new minimatch_1.Minimatch(p, options).hasMagic())
- return true;
- }
- return false;
- };
- exports.hasMagic = hasMagic;
|