Skip to content

test(react-native-to-swiftui): support CRLF in skill metadata regex - #44

Open
reginaldalfret wants to merge 1 commit into
openai:mainfrom
reginaldalfret:fix/cross-platform-skill-metadata-regex
Open

reginaldalfret wants to merge 1 commit into
openai:mainfrom
reginaldalfret:fix/cross-platform-skill-metadata-regex

Conversation

@reginaldalfret

Copy link
Copy Markdown

Summary

When checking out the repository on systems or environments where files have CRLF line endings, tests/react-native-to-swiftui/unit/catalog.test.mjs fails with:

AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^---\nname: plan-react-native-port\n/m.

This PR updates the regex to new RegExp("^---\\r?\\nname: " + skill + "\\r?\\n", "m"), matching the line-ending handling pattern already used in tests/autodesk-fusion/unit/catalog.test.mjs.

Validation

  • node --test tests/react-native-to-swiftui/unit/catalog.test.mjs passes (2/2)
  • All 18 react-native-to-swiftui unit, integration, and security tests pass
  • node scripts/validate-marketplace.mjs and node scripts/validate-react-native-to-swiftui.mjs pass

Support optional carriage returns in the skill metadata regex so catalog
tests pass deterministically across environments regardless of git checkout
line-ending configuration, matching the pattern used in autodesk-fusion.

Signed-off-by: reginaldalfret <reginaldalfret@gmail.com>
@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@reginaldalfret

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 24, 2026
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.

1 participant