Commit activity
Last 12 weeks ยท 0 commits
Community health
5 of 6 standards met
Recent PRs & issues
Hi, (current ) bundles its CLI into (loaded by ) and . Both inline fast-glob 3.3.3 โ micromatch 4.0.8 โ picomatch 2.3.1, the version on resolves. picomatch 2.3.1 is covered by two published advisories (list below), both fixed in 2.3.2. case-police declares no dependencies, so and SCA tools cannot see this copy, for you or for users who run the CLI. Suggested fix: refresh so picomatch resolves to 2.3.2 (within micromatch's ), rebuild and publish. Static reproduction (2026-11-25): 1. 2. โ , (bundled picomatch) 3. โ , (extglob check added in 2.3.2) 4. โ , (constant added in 2.3.2) Advisories picomatch 2.3.1: CVE-2026-33671 / GHSA-c2c7-rcm5-vvqj: ReDoS via extglob quantifiers (fixed 2.3.2) CVE-2026-33672 / GHSA-3v7f-55p6-f55p: method injection in POSIX character classes causes incorrect glob matching (fixed 2.3.2)
Recent fixes
Describe the bug If you add rules as : then will match as : but if you add them as : then the same text will match as : A fix could be to sort the keys by size (to have the "closest" match first) Reproduction https://stackblitz.com/edit/stackblitz-starters-zc8y2r?file=test.md System Info Used Package Manager pnpm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.
Summary Regex alternation is leftmost-wins, not longest-wins. So when the dictionary contains both and , results depended on dictionary insertion order: Against input : Before: , then inside โ , leaving โ After: longer key tried first โ , โ Sort keys by length descending when building the regex so the more specific rule wins, regardless of dictionary order. Test plan [x] โ 6 tests pass (2 new cases for both dictionary orderings) [x] [x] Fixes #158
Repository: made-in-common/case-police. Description: ๐จ Make the case correct, PLEASE! Stars: 1422, Forks: 92. Primary language: TypeScript. Languages: TypeScript (97.9%), JavaScript (1.3%), Vue (0.8%). License: MIT. Latest release: v2.2.1 (7mo ago). Open PRs: 4, open issues: 5. Last activity: 18h ago. Community health: 75%. Top contributors: antfu, PinkChampagne17, holazz, webfansplz, wey-gu, Evavic44, sajadhsm, rubiin, Justineo, thecuvii and others.