Skip to content

fix(scripts): handle hyphenated statuses in SEP status normalization#2222

Open
18-RAJAT wants to merge 1 commit intomodelcontextprotocol:mainfrom
18-RAJAT:fix/hyphenated-status-normalization
Open

fix(scripts): handle hyphenated statuses in SEP status normalization#2222
18-RAJAT wants to merge 1 commit intomodelcontextprotocol:mainfrom
18-RAJAT:fix/hyphenated-status-normalization

Conversation

@18-RAJAT
Copy link

@18-RAJAT 18-RAJAT commented Feb 7, 2026

Status normalization was using simple title case which converted 'In-Review' to 'In-review', breaking navigation ordering since statusOrder expects 'In-Review'. Now splits on hyphen, title-cases each word, and rejoins.

Status normalization was using simple title case which converted
'In-Review' to 'In-review', breaking navigation ordering since
statusOrder expects 'In-Review'. Now splits on hyphen, title-cases
each word, and rejoins.
@localden
Copy link
Contributor

localden commented Feb 7, 2026

We could probably also do this with RegEx:

const status = sep.status.toLowerCase().replace(/(^|-)(\w)/g, (_, sep, c) => sep + c.toUpperCase());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants