-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrige le problème des URL avec des espaces à l'intérieur (#623)
* encode & decode pages url * add regex to validate url inputs * validate url fields in a11y statement * update changelog
- Loading branch information
1 parent
1c29bd8
commit 645e330
Showing
5 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ import { | |
} from "../../enums"; | ||
import { useAuditStore } from "../../store"; | ||
import { AuditEnvironment, UpdateAuditRequestData } from "../../types"; | ||
import { formatEmail } from "../../utils"; | ||
import { formatEmail, URL_REGEX } from "../../utils"; | ||
const route = useRoute(); | ||
const uniqueId = route.params.uniqueId as string; | ||
|
@@ -310,6 +310,8 @@ const isDevMode = useDevMode(); | |
v-model="procedureUrl" | ||
label="URL de la page d’accueil du site audité" | ||
type="url" | ||
:pattern="URL_REGEX" | ||
title="https://domaine.fr et sans espaces" | ||
required | ||
> | ||
<template #hint> | ||
|
@@ -361,6 +363,8 @@ const isDevMode = useDevMode(); | |
label="Formulaire de contact en ligne" | ||
hint="Exemple : [email protected]" | ||
type="url" | ||
:pattern="URL_REGEX" | ||
title="https://domaine.fr et sans espaces" | ||
placeholder="https://" | ||
:error=" | ||
hasNoContactInfo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters