Skip to content

Commit a274baf

Browse files
committed
Adds comment to HASHTAGS_PATTERN
1 parent 361760b commit a274baf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/util/external_communication/TextLinkifier.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
public final class TextLinkifier {
3434
public static final String TAG = TextLinkifier.class.getSimpleName();
3535

36+
// Looks for hashtags with characters from any language (\p{L}), numbers, or underscores
3637
private static final Pattern HASHTAGS_PATTERN =
37-
Pattern.compile("(#[A-Za-z0-9_\\u0080-\\uFFFF]+)");
38+
Pattern.compile("(#[\\p{L}0-9_]+)");
3839

3940
private TextLinkifier() {
4041
}

0 commit comments

Comments
 (0)