Added support for copying raw wikipedia url

Closes https://github.com/libredirect/libredirect/issues/501
This commit is contained in:
Hygna 2022-10-27 14:28:52 +01:00
parent fb452d8980
commit 59c1465c97
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -522,6 +522,7 @@ function reverse(url, urlString) {
case "reuters":
case "quora":
case "medium":
case "wikipedia":
if (!urlString) resolve(config.services[service].url + url.pathname + url.search)
else resolve(url.replace(/https?:\/{2}(?:[^\s\/]+\.)+[a-zA-Z0-9]+/, config.services[service].url))
return