Removed overkill patterns

This fixes the stack being trashed up
This commit is contained in:
Alexis
2024-11-26 19:59:18 +01:00
parent 9fa6af2fa3
commit 76a6468a04
2 changed files with 6 additions and 6 deletions

View File

@@ -105,8 +105,8 @@ function handleCancel() {
name="new-event-title" name="new-event-title"
required required
:placeholder="$t('entity.calendar.event.title')" :placeholder="$t('entity.calendar.event.title')"
:minlength="3"
:maxlength="120" :maxlength="120"
pattern="([A-Za--ÖØ-öø-ÿ0-9\s\&\-\~]+){3,120}"
class="w-full -my-1 py-1 -mx-1 px-1 text-lg border-b-[1px] bg-transparent focus-visible:outline-none focus-visible:border-blue-600 invalid:border-red-500" class="w-full -my-1 py-1 -mx-1 px-1 text-lg border-b-[1px] bg-transparent focus-visible:outline-none focus-visible:border-blue-600 invalid:border-red-500"
> >
<div class="mt-2 mb-1 text-xs opacity-50"> <div class="mt-2 mb-1 text-xs opacity-50">
@@ -185,8 +185,8 @@ function handleCancel() {
type="text" type="text"
name="new-event-location" name="new-event-location"
:placeholder="$t('entity.calendar.event.addLocation')" :placeholder="$t('entity.calendar.event.addLocation')"
:minlength="3"
:maxlength="160" :maxlength="160"
pattern="([A-Za--ÖØ-öø-ÿ0-9\s\&\-\~]+){3,160}"
class="w-full -my-1 py-2 px-2 text-sm border-b-[1px] bg-transparent focus-visible:outline-none focus-visible:border-blue-600 invalid:border-red-500" class="w-full -my-1 py-2 px-2 text-sm border-b-[1px] bg-transparent focus-visible:outline-none focus-visible:border-blue-600 invalid:border-red-500"
> >

View File

@@ -137,9 +137,9 @@ export default defineI18nConfig(() => ({
prevPage: "Previous page with events", prevPage: "Previous page with events",
nextPage: "Next page with events", nextPage: "Next page with events",
patterns: { patterns: {
title: "Between 3 and 120 caracters, without special symbols, except & - ~ ()", title: "Between 3 and 120 caracters.",
description: "1200 caracters max.", description: "1200 caracters max.",
location: "Between 3 and 160 caracters, without special symbols, except & - ~ ()", location: "Between 3 and 160 caracters.",
}, },
editDialog: { editDialog: {
title: "Edit event", title: "Edit event",
@@ -356,9 +356,9 @@ export default defineI18nConfig(() => ({
prevPage: "Précédente page à évènements", prevPage: "Précédente page à évènements",
nextPage: "Prochaine page à évènements", nextPage: "Prochaine page à évènements",
patterns: { patterns: {
title: "Entre 3 et 120 charactères, sans symboles spéciaux, sauf & - ~ ()", title: "Entre 3 et 120 charactères.",
description: "Maximum 1200 charactères.", description: "Maximum 1200 charactères.",
location: "Entre 3 et 160 charactères, sans symboles spéciaux, sauf & - ~ ()", location: "Entre 3 et 160 charactères.",
}, },
editDialog: { editDialog: {
title: "Modifier l'évènement", title: "Modifier l'évènement",