The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
fix: strip diacritics from team URL slug generation (#2489)
Jahangir Babar3f7c4df1b125
diff --git a/apps/remix/app/components/dialogs/team-create-dialog.tsx b/apps/remix/app/components/dialogs/team-create-dialog.tsxindex aab38f610..6ef45042a 100644--- a/apps/remix/app/components/dialogs/team-create-dialog.tsx+++ b/apps/remix/app/components/dialogs/team-create-dialog.tsx@@ -127,7 +127,11 @@ export const TeamCreateDialog = ({ trigger, onCreated, ...props }: TeamCreateDia};const mapTextToUrl = (text: string) => {- return text.toLowerCase().replace(/\s+/g, '-');+ return text+ .normalize('NFD')+ .replace(/[\u0300-\u036f]/g, '')+ .toLowerCase()+ .replace(/\s+/g, '-');};const dialogState = useMemo(() => {@@ -260,7 +264,7 @@ export const TeamCreateDialog = ({ trigger, onCreated, ...props }: TeamCreateDia<Input className="bg-background" {...field} /></FormControl>{!form.formState.errors.teamUrl && (- <span className="text-foreground/50 text-xs font-normal">+ <span className="text-xs font-normal text-foreground/50">{field.value ? (`${NEXT_PUBLIC_WEBAPP_URL()}/t/${field.value}`) : (@@ -288,7 +292,7 @@ export const TeamCreateDialog = ({ trigger, onCreated, ...props }: TeamCreateDia/><label- className="text-muted-foreground ml-2 text-sm"+ className="ml-2 text-sm text-muted-foreground"htmlFor="inherit-members"><Trans>Allow all organisation members to access this team</Trans>