fix(url-encoder, validation): typo in validation of url-encoder.vue #1024

This commit is contained in:
Pavel Gordon 2024-04-29 11:58:08 +02:00 committed by GitHub
parent 9eac9cb2a9
commit cb5b462e11
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 decodeValidation = useValidation({
source: encodeInput,
source: decodeInput,
rules: [
{
validator: value => isNotThrowing(() => decodeURIComponent(value)),