UNPKG

389 BTypeScriptView Raw
1export declare const isSafeUrl: (url: string) => boolean;
2export interface Match {
3 schema: any;
4 index: number;
5 lastIndex: number;
6 raw: string;
7 text: string;
8 url: string;
9 length?: number;
10}
11export declare function getLinkMatch(str: string): '' | Match | null;
12/**
13 * Adds protocol to url if needed.
14 */
15export declare function normalizeUrl(url: string): string;