Browse Source

Smol bugfix

pull/14/head
Nicolai Ort 7 days ago
parent
commit
e06f9253cf
Signed by: niggl GPG Key ID: 13AFA55AF62F269F
  1. 2
      src/server.js

2
src/server.js

@ -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…
Cancel
Save