mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Replace the naive string matcher (~40 lines) with a proper gitignore implementation (~200 lines, no external deps) supporting **, ?, [abc], !negation, /anchored, pattern/ (dir-only), and \#/\! escapes. New Matcher API (Compile, ReadMatcher, Match, CanSkipDir, HasRules) replaces the old Match/ReadPatterns functions (kept as deprecated wrappers). Call sites in sync.go and install_discovery.go updated. Also fixes isDir=true for install discovery (skill paths are dirs). 100% test coverage on skillignore package (~150 table-driven cases). Added 7 sync discovery tests and 5 install integration tests covering **, !negation, pattern/, [Tt] char class, and combined patterns.