Migrate to a monorepo structure (#2909)
This commit is contained in:
7
packages/twenty-front/src/utils/is-url.ts
Normal file
7
packages/twenty-front/src/utils/is-url.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { isDefined } from './isDefined';
|
||||
|
||||
export const isURL = (url: string | undefined | null) =>
|
||||
isDefined(url) &&
|
||||
url.match(
|
||||
/^(https?:\/\/)?(www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/i,
|
||||
);
|
||||
Reference in New Issue
Block a user