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

Custom regexp for mention #236

Open
deguif opened this issue Mar 28, 2018 · 1 comment
Open

Custom regexp for mention #236

deguif opened this issue Mar 28, 2018 · 1 comment

Comments

@deguif
Copy link

deguif commented Mar 28, 2018

I don't see any possibility to handle custom mention regexp.
Would it be usefull to add support for it?

For example: in my use case, a username can be composed of several characters that are not allowed in regexp used for twitter or instagram (for example -, +, ...). They are not referencing twitter or instagram username.

This could introduce a new way to configure mention, using an object instead of only a string consisting of the service name. Here's an example:

mention: {
    regexp: '',
}
@CaitlinP95
Copy link

^^ this would be super useful. I've had to disable my hashtags from containing hyphens; twitter, facebook, and Instagram does not seem to support them. Has any progress been made with this?

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

No branches or pull requests

2 participants