You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The this.searchText is user input text, so it can be wrong regexp.
You can check this error on sample application too (Turn on devtools before trying).
Mentionable component will cause error when user type special character like
@\
or(@Akyryum)
on mentioning.I think below line may cause error
https://github.com/Akryum/vue-mention/blob/master/packages/vue-mention/src/Mentionable.vue#L73
The
this.searchText
is user input text, so it can be wrong regexp.You can check this error on sample application too (Turn on devtools before trying).
https://vue-mention.netlify.app/
Is this rare?
I think it's not rare bug.
The most common case is
(@user)
, likeRecommendation
My recommendation is to avoid
RegExp
.User inputs won't be regexp basically. So we can simply use
.includes
and.toLowerCase
.The text was updated successfully, but these errors were encountered: