Skip to content

Commit

Permalink
feat: fix highlighing
Browse files Browse the repository at this point in the history
  • Loading branch information
nevo-david committed Nov 19, 2024
1 parent f10bdbc commit 65c97ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/helpers/src/utils/count.length.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export const textSlicer = (
}
}

const {validRangeEnd} = twitter.parseTweet(text);
const {validRangeEnd, valid} = twitter.parseTweet(text);
return {
start: 0,
end: validRangeEnd
end: valid ? end : validRangeEnd
}
};

Expand Down

0 comments on commit 65c97ae

Please sign in to comment.