feat: allow up to 8128 characters for links in bookmark widget (#1851) #1850

This commit is contained in:
Thomas Camlong
2024-02-09 22:36:34 +01:00
committed by GitHub
parent 5d113ea280
commit f0a67d9a29

View File

@@ -87,7 +87,7 @@ const definition = defineWidget({
return t('item.validation.length', { shortest: '1', longest: '100' });
},
href: (value) => {
if (!z.string().min(1).max(200).safeParse(value).success) {
if (!z.string().min(1).max(8192).safeParse(value).success) {
return t('item.validation.length', { shortest: '1', longest: '200' });
}