mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-11-17 20:14:27 +00:00
Merge pull request #7556 from Jaspann/improve-hashtags
Fixes hashtags that use non-English characters.
This commit is contained in:
1 file changed
+3
-1
@@ -33,7 +33,9 @@ import static org.schabi.newpipe.util.external_communication.InternalUrlsHandler
|
||||
public final class TextLinkifier {
|
||||
public static final String TAG = TextLinkifier.class.getSimpleName();
|
||||
|
||||
private static final Pattern HASHTAGS_PATTERN = Pattern.compile("(#[A-Za-z0-9_]+)");
|
||||
// Looks for hashtags with characters from any language (\p{L}), numbers, or underscores
|
||||
private static final Pattern HASHTAGS_PATTERN =
|
||||
Pattern.compile("(#[\\p{L}0-9_]+)");
|
||||
|
||||
private TextLinkifier() {
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user