Matching @username
formatted usernames encounters collisions with generated token strings
#78
Labels
@username
formatted usernames encounters collisions with generated token strings
#78
Hello, thank you for sharing this package!
I am trying to match several patterns of strings within a body of text, namely:
#programming
),@mhuggins
), andI've defined three custom matchers as part of a wrapper component:
I then try to use this on a code of text, e.g.:
This ends up replacing some matched elements with tokens in the format
@__ELEMENT-${uid}-\\d+__@
, at which point myHashTagMatcher
matches against combinations of string created from these tokens such as@__
and@.
.Is there an existing way to avoid this, or is this a bug that needs to be reconciled?
The text was updated successfully, but these errors were encountered: