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

Require spacing for @-mentions #50

Merged
merged 3 commits into from
Dec 6, 2016

Conversation

parrish
Copy link
Contributor

@parrish parrish commented Dec 5, 2016

For zooniverse/Panoptes-Front-End#3260.

Instead of attempting to use boundary characters in the match (which never made sense here), it just requires a leading space or a line-start.

It will break mention parsing in non-spaced usages. e.g. "Hi @user" works, but "Hi (@user)" will not

@parrish
Copy link
Contributor Author

parrish commented Dec 5, 2016

Staged version can be found here: https://fix-mention-parsing.pfe-preview.zooniverse.org

@parrish
Copy link
Contributor Author

parrish commented Dec 5, 2016

Derp.. Just broke it. One sec....

@parrish
Copy link
Contributor Author

parrish commented Dec 5, 2016

Okay, staged version is fixed now

@parrish
Copy link
Contributor Author

parrish commented Dec 5, 2016

Just saw that this was an issue on zooniverse/Panoptes-Front-End#3241 too, so I updated the other mentions to be consistent as well.

This will match the behavior of the API implementation of the mention parsing.

Copy link
Contributor

@srallen srallen left a comment

Choose a reason for hiding this comment

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

LGTM

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