Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse labels with emojis #285

Merged
merged 5 commits into from
Apr 11, 2024
Merged

Parse labels with emojis #285

merged 5 commits into from
Apr 11, 2024

Conversation

dangoslen
Copy link
Owner

@dangoslen dangoslen commented Apr 11, 2024

Fixes issue #284 by adding : to the label extractor Regex. This PR also simplifies the Regex syntax and adds better comments to the Regex.

// Each match may are may not have a trailing comma (,?). If one exists, it is removed before appending it to the list
const regex = new RegExp(/([\w\s-\/+\?;\[\]\(\)]+,?)/, 'g')
const regex = new RegExp(/([\w\s-/+?;:[\]()]+,?)/, 'g')
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mathomp4 You were spot on!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof. Glad I didn't try. I would have messed up that regex for sure. 😄

@dangoslen dangoslen merged commit f87a2db into main Apr 11, 2024
3 checks passed
@dangoslen dangoslen deleted the allow-for-emojis-in-labels branch April 11, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants