add www idk sometyhing something

This commit is contained in:
Ashley 2023-09-07 17:14:47 +00:00
parent e5704a4c17
commit 2b9e16d06f

View file

@ -141,7 +141,7 @@ function getJson(str) {
}
/* support button */
const PATREON_REGEX = /https:\/\/www.patreon.com\/(?<name>[\w\d_-]+)/;
const PATREON_REGEX = /https:\/\/(?:www\.)?patreon.com\/(?<name>[\w\d_-]+)/;
/* connections */
const X_REGEX = /https:\/\/twitter.com\/(?<name>[\w\d_-]+)/;