Skip to content

Commit 65c97ae

Browse files
committed
feat: fix highlighing
1 parent f10bdbc commit 65c97ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/helpers/src/utils/count.length.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export const textSlicer = (
1313
}
1414
}
1515

16-
const {validRangeEnd} = twitter.parseTweet(text);
16+
const {validRangeEnd, valid} = twitter.parseTweet(text);
1717
return {
1818
start: 0,
19-
end: validRangeEnd
19+
end: valid ? end : validRangeEnd
2020
}
2121
};
2222

0 commit comments

Comments
 (0)