@xnoxs/flux-lang 3.4.2 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/flux.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * flux-lang v3.4.2
2
+ * flux-lang v3.4.4
3
3
  * Flux — A modern language that transpiles to JavaScript. Python-clean syntax, TypeScript-level safety, Rust-inspired pattern matching.
4
4
  * (c) 2026 Flux Lang Contributors
5
5
  * Released under the MIT License
@@ -7290,7 +7290,20 @@ var require_config = __commonJS({
7290
7290
  function defineConfig(config) {
7291
7291
  return config;
7292
7292
  }
7293
- module.exports = { loadConfig, mergeConfig, defineConfig };
7293
+ function matchIgnore(filePath, patterns) {
7294
+ if (!patterns || patterns.length === 0) return false;
7295
+ const normalize = (p) => p.replace(/\\/g, "/");
7296
+ const fp = normalize(filePath);
7297
+ for (const pattern of patterns) {
7298
+ let re = normalize(pattern).replace(/\*\*/g, "\0DS\0");
7299
+ re = re.replace(/[.+^${}()|[\]\\]/g, "\\$&");
7300
+ re = re.replace(/\*/g, "[^/]*");
7301
+ re = re.replace(/\x00DS\x00\//g, "(.+/)?").replace(/\x00DS\x00/g, ".*");
7302
+ if (new RegExp("(^|/)" + re + "$").test(fp)) return true;
7303
+ }
7304
+ return false;
7305
+ }
7306
+ module.exports = { loadConfig, mergeConfig, defineConfig, matchIgnore };
7294
7307
  }
7295
7308
  });
7296
7309