Merge branch 'main' into fix/universal-phase-number-support
Rebased PR #639 onto refactored modular structure (lib/core.cjs, lib/phase.cjs, etc.) Changes ported from monolithic gsd-tools.cjs to new modules: - Add comparePhaseNum() helper to lib/core.cjs for universal phase sorting - Update normalizePhaseName() regex to handle letter-suffix phases (12A, 12B) - Update all phase-matching regexes across lib/*.cjs with [A-Z]? pattern - Replace parseFloat-based sorting with comparePhaseNum throughout - Add 15 new tests for comparePhaseNum, normalizePhaseName, and letter-suffix sorting Sort order: 12 → 12.1 → 12.2 → 12A → 12A.1 → 12A.2 → 12B → 13 Co-Authored-By: vinicius-tersi <MDQ6VXNlcjUyNDk2NDYw>
This commit is contained in:
1132
tests/phase.test.cjs
Normal file
1132
tests/phase.test.cjs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user