Skip to content

Commit

Permalink
remove the link if is not found in the text
Browse files Browse the repository at this point in the history
  • Loading branch information
cmunozgar committed Oct 19, 2022
1 parent f5eb2dd commit 87f9e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LinkifiedText/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const calulateLinkifiedText = (options, links, curString, calculatedElements = [
calculatedElements.push(curString.substring(lastLink.indices[1]));
return calulateLinkifiedText(
options,
links,
links.slice(0, -1),
curString.substring(0, lastLink.indices[1]),
calculatedElements,
);
Expand Down

0 comments on commit 87f9e50

Please sign in to comment.