Skip to content

Commit

Permalink
- Add clarity comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haideriqbal committed Sep 16, 2024
1 parent 0960c97 commit 2407721
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export default function addLinksToText(
n !== -1;
n = text.indexOf(entityId, n)
) {
// We need to handle this case when entity ID is part of a URL and it then gets linked to an entity but
// resulting url is broken. So, we need to keep the URL as is if the entity ID is part of a URL.
// Check if the entity ID is within any URL range
let isWithinURL = urlMatches.some(
(urlRange) =>
Expand Down

0 comments on commit 2407721

Please sign in to comment.