Cars project 3 do dokończenia

This commit is contained in:
aplikacje committed 2026-11-05 10:50:57 +01:00
1 parent 3b96ac1be8
commit b3be59a011
159 files changed
+9794 -3786

No files matched your search

+1 -4
View File
@@ -14,10 +14,7 @@ const minimatch_1 = require("minimatch");
* is in the options, brace expansion _is_ treated as a pattern having magic.
*/
const hasMagic = (pattern, options = {}) => {
if (!Array.isArray(pattern)) {
pattern = [pattern];
}
for (const p of pattern) {
for (const p of Array.isArray(pattern) ? pattern : [pattern]) {
if (new minimatch_1.Minimatch(p, options).hasMagic())
return true;
}