export function isURL(str: string): boolean { return /^(https?:\/\/|www\.|\/)/.test(str); }