Skip to content

Commit

Permalink
Using jsdoc format for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
samilabud committed Dec 15, 2023
1 parent 5be5dc0 commit 8a75507
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libs/convertToLTRForComposer/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ function canComposerBeConvertedToLTR(text: string): boolean {
* Mention suggestions not works if @ or \s (at or space) is the first character;
* Placeholder is not displayed if the unicode character is the only character remaining;
*
* @newComment: the comment written by the user
* @force: always remove the LTR unicode, going to be used when composer is consider as empty */
* @param {String} newComment - the comment written by the user
* @param {Boolean} force - always remove the LTR unicode, going to be used when composer is consider as empty
* @return {String}
*/

const resetLTRWhenEmpty = (newComment: string, force?: boolean) => {
const result = newComment.length <= 1 || force ? newComment.replaceAll(CONST.UNICODE.LTR, '') : newComment;
return result;
Expand Down

0 comments on commit 8a75507

Please sign in to comment.