Support non-ascii (unicode) enum and type names. by josstn · Pull Request #14 · hey-api/openapi-ts

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@josstn

Copy link Copy Markdown

Contributor

@josstn josstn commented

Feb 14, 2024

This replaces regexp patterns that only worked with ascii characters with more proper matching that supports unicode identifiers in typescript/javascript.

The platform must support "unicode-aware mode" (the u flag) for this to work. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode

This replaces regexp patterns that only worked with ascii characters with more proper matching that supports unicode identifiers in typescript/javascript.

The platform must support "unicode-aware mode" (the u flag) for this to work. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/unicode
So that it matches the desired test result.

@mrlubos mrlubos merged commit 325f7ba into hey-api:master

Feb 15, 2024

@mrlubos

Copy link Copy Markdown

Member

mrlubos commented

Feb 15, 2024

@josstn thank you, released!

josstn reacted with rocket emoji

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@josstn @mrlubos