1
0
Fork 0
mirror of https://github.com/CorentinTh/it-tools.git synced 2025-08-09 23:45:18 +02:00

Fix typo in validation of url-encoder.vue

This commit is contained in:
Pavel Gordon 2024-04-29 11:49:06 +02:00 committed by GitHub
parent 9eac9cb2a9
commit 934e98c79e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,7 @@ const decodeInput = ref('Hello%20world%20%3A)');
const decodeOutput = computed(() => withDefaultOnError(() => decodeURIComponent(decodeInput.value), '')); const decodeOutput = computed(() => withDefaultOnError(() => decodeURIComponent(decodeInput.value), ''));
const decodeValidation = useValidation({ const decodeValidation = useValidation({
source: encodeInput, source: decodeInput,
rules: [ rules: [
{ {
validator: value => isNotThrowing(() => decodeURIComponent(value)), validator: value => isNotThrowing(() => decodeURIComponent(value)),