mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-01 13:58:20 +03:00
Adds comment to HASHTAGS_PATTERN
This commit is contained in:
parent
361760be0a
commit
a274baf5cd
1 changed files with 2 additions and 1 deletions
|
@ -33,8 +33,9 @@ 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();
|
||||||
|
|
||||||
|
// Looks for hashtags with characters from any language (\p{L}), numbers, or underscores
|
||||||
private static final Pattern HASHTAGS_PATTERN =
|
private static final Pattern HASHTAGS_PATTERN =
|
||||||
Pattern.compile("(#[A-Za-z0-9_\\u0080-\\uFFFF]+)");
|
Pattern.compile("(#[\\p{L}0-9_]+)");
|
||||||
|
|
||||||
private TextLinkifier() {
|
private TextLinkifier() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue