feat(loader)!: implement glob pattern matching for module discovery
Replace simple prefix matching with full glob pattern support for discovering root folders. Changes: - Add EscapePattern() to escape Lua magic characters - Add GlobToPattern() to convert glob patterns (e.g., "bladw_*") to Lua regex patterns - Refactor FindRootFolders() to support: • Exact matches without wildcards (e.g., "bladw_announcement") • Glob patterns with * in prefix/suffix/middle positions - Update default config root from "bladw_*" to "bladw_announcement" - Improve documentation with usage examples - Add new announcement module with client, server, and shared files - Update rndx.lua library (formatting/whitespace changes) BREAKING CHANGE: The root config now expects exact folder names or glob patterns instead of simple prefixes. Existing configs using "bladw_*" will still work but the matching behavior changes from prefix-only to glob-based pattern matching.
This commit is contained in:
5 files changed
+752
-707
No files matched your search
@@ -0,0 +1 @@
|
||||
print("sv_function.lua")
|
||||
Reference in new issue
Block a user