fix: two issues with board rename and iframes (#2215)
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import { DEFAULT_THEME, MANTINE_COLORS, MantineColor } from '@mantine/core';
|
||||
import { z } from 'zod';
|
||||
import { BackgroundImageAttachment, BackgroundImageRepeat, BackgroundImageSize } from '~/types/settings';
|
||||
import {
|
||||
BackgroundImageAttachment,
|
||||
BackgroundImageRepeat,
|
||||
BackgroundImageSize,
|
||||
} from '~/types/settings';
|
||||
|
||||
export const configNameSchema = z.string().regex(/^[a-zA-Z0-9-_\s()]+$/);
|
||||
export const configNameSchema = z
|
||||
.string()
|
||||
.regex(/^[a-zA-Z0-9-_\s()]+$/)
|
||||
.min(1);
|
||||
|
||||
export const createBoardSchemaValidation = z.object({
|
||||
name: configNameSchema,
|
||||
|
||||
Reference in New Issue
Block a user