Skip to content

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

@patrickReiis

Description

@patrickReiis

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.

Metadata

Metadata

Assignees

Labels

bugparsingRelated to string parsing

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions