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

BUG: linkifyStr doesn't work with apostrophe and an alphabetical character #488

Open
patrickReiis opened this issue Aug 27, 2024 · 0 comments

Comments

@patrickReiis
Copy link

I am using Deno.

I work with a technology called nostr, and the following string nostr:npub1gujeqakgt7fyp6zjggxhyy7ft623qtcaay5lkc8n8gkry4cvnrzqd3f67z is converted to patrick.

However, if the string I just mentioned has an apostrophe plus another character it doesn't work.

Like this: nostr:npub1gujeqakgt7fyp6zjggxhyy7ft623qtcaay5lkc8n8gkry4cvnrzqd3f67z's

I actually created a new repository just dedicated for this issue, in the line 32 you can change the argument so it becomes the variable in the line 27 or 28.

Link: https://github.com/patrickReiis/linkify-mention

I could try to fix this on my own, since I have a specific parser with {render: {url: <specific-parser>}}, but I think it should work under the hood already, without me having to worry about it.

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

1 participant