Smol bugfix
This commit is contained in:
parent
93a931830f
commit
e06f9253cf
|
@ -445,7 +445,7 @@ function checkKnownProviders(target) {
|
|||
}
|
||||
|
||||
const redditID = target.match(/(((((?:https?:)?\/\/)((?!about\.)[\w-]+?\.)?([rc]edd(?:it\.com|\.it)))(?!\/(?:blog|about|code|advertising|jobs|rules|wiki|contact|buttons|gold|page|help|prefs|user|message|widget)\b)((?:\/r\/[\w-]+\b(?<!\/pcmasterrace))|(?:\/tb))?(\/comments)??(\/\w{2,7}\b(?<!\/46ijrl)(?<!\/wiki))((?:(?!\))\S)*)))/);
|
||||
if (redditID[9]) {
|
||||
if (redditID) {
|
||||
const shortcode = `r${redditID[9]}`
|
||||
return {
|
||||
url: `${config.getBaseUrl()}/${shortcode}`,
|
||||
|
|
Loading…
Reference in New Issue