mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Change regex
This commit is contained in:
parent
3e033f517d
commit
e50a267309
1 changed files with 1 additions and 1 deletions
|
@ -988,7 +988,7 @@ public abstract class BaseMainActivity extends BaseActivity implements NetworkSt
|
||||||
}
|
}
|
||||||
//Here we know that the intent contains a valid URL
|
//Here we know that the intent contains a valid URL
|
||||||
if (!url.contains("medium.com")) {
|
if (!url.contains("medium.com")) {
|
||||||
Pattern link = Pattern.compile("https?://([\\da-z.-]+[à-ü]?\\.[a-z.]{2,10})/(@[\\w._-]*[0-9]*)(/[0-9]+)?$");
|
Pattern link = Pattern.compile("https?://([\\da-z.-]+[à-ü]?\\.[a-z.]{2,10})/(@[@\\w._-]*[0-9]*)(/[0-9]+)?$");
|
||||||
Matcher matcherLink;
|
Matcher matcherLink;
|
||||||
matcherLink = link.matcher(url);
|
matcherLink = link.matcher(url);
|
||||||
if (matcherLink.find()) {
|
if (matcherLink.find()) {
|
||||||
|
|
Loading…
Reference in a new issue