url-regex-unsafe
Version:
Regular expression matching for URL's. Maintained, and browser-friendly version of url-regex. This package is vulnerable to CVE-2020-7661. Works in Node v10.12.0+ and browsers.
20 lines (16 loc) • 378 B
TypeScript
type Options = Partial<{
exact: boolean;
strict: boolean;
auth: boolean;
localhost: boolean;
parens: boolean;
apostrophes: boolean;
trailingPeriod: boolean;
ipv4: boolean;
ipv6: boolean;
tlds: string[];
returnString: boolean;
}>;
declare function createUrlRegExp(options?: Options): RegExp;
export as namespace urlRegexUnsafe;
export = createUrlRegExp;