better regex
This commit is contained in:
parent
88e8f086f2
commit
7cd4dc5bdc
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ import { Button, ChannelStore, Forms } from "@webpack/common";
|
|||
import { Message } from "discord-types/general";
|
||||
|
||||
const WHITELISTED_SHARE_CHANNELS = ["1256395889354997771", "1032200195582197831"];
|
||||
const CLONE_LINK_REGEX = /(https:\/\/(?:github\.com|git\.nin0\.dev|codeberg\.org)\/[a-zA-Z0-9]+\/[a-zA-Z0-9]+(?:\.git)?(?:\/)?)/;
|
||||
const CLONE_LINK_REGEX = /(https:\/\/(?:git(?:hub|lab)\.com|git\.(?:[a-zA-Z0-9]|\.)+|codeberg\.org)\/[a-zA-Z0-9]+\/[a-zA-Z0-9]+(?:\.git)?(?:\/)?)/;
|
||||
|
||||
function UserpluginInstallButton({ props }: any) {
|
||||
const message: Message = props.message;
|
||||
|
|
Loading…
Reference in a new issue