mirror of
https://framagit.org/tom79/nitterizeme
synced 2025-01-03 12:09:30 +01:00
Merge branch 'ms8661-develop-patch-90173' into 'develop'
Fix wikipedia URL transformation See merge request tom79/nitterizeme!145
This commit is contained in:
commit
bccbab9729
@ -113,7 +113,7 @@ public class Utils {
|
||||
public static final Pattern scriberipSubdomainPattern = Pattern.compile("([\\w_-]+)\\.medium.com/(((?!([\"'<])).)*)");
|
||||
|
||||
|
||||
public static final Pattern wikilessPattern = Pattern.compile("([\\w_-]+)\\.wikipedia.org/(((?!([\"'<])).)*)");
|
||||
public static final Pattern wikilessPattern = Pattern.compile("([\\w_-]+)\\.(?:m\\.)?wikipedia.org/(((?!([\"'<])).)*)");
|
||||
|
||||
public static final Pattern bibliogramAccountPattern = Pattern.compile("(m\\.|www\\.)?instagram.com(((?!/p/).)+)");
|
||||
public static final Pattern maps = Pattern.compile("/maps/place/([^@]+@)?([\\d.,z]+).*");
|
||||
@ -361,7 +361,7 @@ public class Utils {
|
||||
}
|
||||
path = matcher.group(2);
|
||||
}
|
||||
newUrl = scheme + wikilessHost + "/" + path + (subdomain != null ? "&lang=" + subdomain : "");
|
||||
newUrl = scheme + wikilessHost + "/" + path + (subdomain != null ? "?lang=" + subdomain : "");
|
||||
return newUrl;
|
||||
} else {
|
||||
return url;
|
||||
|
Loading…
Reference in New Issue
Block a user