first commit
This commit is contained in:
5
calcom/packages/lib/getValidRhfFieldName.ts
Normal file
5
calcom/packages/lib/getValidRhfFieldName.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export const getValidRhfFieldName = (fieldName: string) => {
|
||||
// Remember that any transformation that you do here would run on System Field names as well. So, be careful and avoiding doing anything here that would modify the SystemField names.
|
||||
// e.g. SystemField name currently have uppercases in them. So, no need to lowercase unless absolutely needed.
|
||||
return fieldName.replace(/[^a-zA-Z0-9]/g, "-");
|
||||
};
|
||||
Reference in New Issue
Block a user