Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: fix highlighing

Nevo David65c97ae1e009
diff --git a/libraries/helpers/src/utils/count.length.ts b/libraries/helpers/src/utils/count.length.ts
index cd9715f23..02976874d 100644
--- a/libraries/helpers/src/utils/count.length.ts
+++ b/libraries/helpers/src/utils/count.length.ts
@@ -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
}
};