Allows multilingual support in hashtags

This commit is contained in:
Jaspann 2021-12-19 20:33:55 -05:00
parent d3562c70f5
commit 361760be0a
1 changed files with 2 additions and 1 deletions

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() {
} }