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.
I am using Deno.
I work with a technology called nostr, and the following string
nostr:npub1gujeqakgt7fyp6zjggxhyy7ft623qtcaay5lkc8n8gkry4cvnrzqd3f67zis converted topatrick.However, if the string I just mentioned has an apostrophe plus another character it doesn't work.
Like this:
nostr:npub1gujeqakgt7fyp6zjggxhyy7ft623qtcaay5lkc8n8gkry4cvnrzqd3f67z'sI 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.