1 parent
7585e9b32e
commit
50c75da5e0
4 files changed
+95
-93
No files matched your search
@@ -0,0 +1,5 @@
|
||||
export const slugify = (str: string) => {
|
||||
return str.replace(/[^a-zA-Z0-9-]/g, "-").toLowerCase();
|
||||
};
|
||||
|
||||
export default slugify;
|
||||
@@ -1,7 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { LocationType } from "@lib/location";
|
||||
import { slugify } from "@lib/slugify";
|
||||
import { LocationType } from "@calcom/lib/location";
|
||||
import { slugify } from "@calcom/lib/slugify";
|
||||
|
||||
export const eventTypeLocations = z.array(
|
||||
z.object({ type: z.nativeEnum(LocationType), address: z.string().optional() })
|
||||
|
||||
Reference in new issue
Block a user