🔗link
The regex keeps the protocol optional, so some links can be false positives. In a future version you will be able to choose if you want to force a protocol or leave the protocol optional
link(link: string): {
include: boolean,
matchs: RegExpMatchArray | null,
groups: Array<{
protocol: string | undefined,
auth: string | undefined,
username: string | undefined,
password: string | undefined,
alldomain: string,
subdomain: string | undefined,
domain: string,
extension: string,
ipadress: string | undefined,
port: string | undefined,
route: string | undefined,
filename: string | undefined,
query: string | undefined,
anchor: string | undefined,
} | null> | null
}
Last updated