1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 08:30:44 +00:00

Allows multilingual support in hashtags

This commit is contained in:
Jaspann 2021-12-19 20:33:55 -05:00
parent d3562c70f5
commit 361760be0a

View File

@ -33,7 +33,8 @@ import static org.schabi.newpipe.util.external_communication.InternalUrlsHandler
public final class TextLinkifier { public final class TextLinkifier {
public static final String TAG = TextLinkifier.class.getSimpleName(); public static final String TAG = TextLinkifier.class.getSimpleName();
private static final Pattern HASHTAGS_PATTERN = Pattern.compile("(#[A-Za-z0-9_]+)"); private static final Pattern HASHTAGS_PATTERN =
Pattern.compile("(#[A-Za-z0-9_\\u0080-\\uFFFF]+)");
private TextLinkifier() { private TextLinkifier() {
} }