Adds comment to HASHTAGS_PATTERN

This commit is contained in:
Jaspann 2021-12-20 14:13:40 -05:00
parent 361760be0a
commit a274baf5cd
1 changed files with 2 additions and 1 deletions

View File

@ -33,8 +33,9 @@ import static org.schabi.newpipe.util.external_communication.InternalUrlsHandler
public final class TextLinkifier {
public static final String TAG = TextLinkifier.class.getSimpleName();
// Looks for hashtags with characters from any language (\p{L}), numbers, or underscores
private static final Pattern HASHTAGS_PATTERN =
Pattern.compile("(#[A-Za-z0-9_\\u0080-\\uFFFF]+)");
Pattern.compile("(#[\\p{L}0-9_]+)");
private TextLinkifier() {
}