potty / react-anchorme

⚓️ React component using Anchorme.js to detect urls and emails in a text and converts them into clickable HTML links.
MIT License
56 stars 7 forks source link

Mixing inner text and parameters causes error #7

Open jjl-genemod opened 3 years ago

jjl-genemod commented 3 years ago

Great library! One issue I'm seeing is that if you have both normal text and bracketed inner parameters passed as children the component throws various errors.

Example 1:

testa.com {"testb.com"}

Example 2, note the spaces around the brackets:

{"testa.com"}