HashTagHelper icon indicating copy to clipboard operation
HashTagHelper copied to clipboard

Disable hashtag detection if length of tag is 1

Open ibrahimbroachwala opened this issue 7 years ago • 1 comments

Is there any way I can disable the hashtag detection if it is just a single letter or number. For eg: #a #2 should not be detected as hashtags.

ibrahimbroachwala avatar Mar 17 '18 06:03 ibrahimbroachwala

In "setColorsToAllHashTags" function, add "if(nextNotLetterDigitCharIndex - startIndexOfNextHashSign >= MIN_CHARS_FOR_HASHTAG)" before "setColorForHashTagToTheEnd", where MIN_CHARS_FOR_HASHTAG is 3.

tamirherman avatar Oct 03 '19 13:10 tamirherman