mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 07:16:15 -04:00
fix(base64-to-string): prevent validation error
This commit is contained in:
parent
750a76b00f
commit
8a9e7888de
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ const textOutput = computed(() => {
|
||||||
const { copy: copyText } = useCopy({ source: textOutput, text: 'String copied to the clipboard' });
|
const { copy: copyText } = useCopy({ source: textOutput, text: 'String copied to the clipboard' });
|
||||||
const b64Validation = useValidation({
|
const b64Validation = useValidation({
|
||||||
source: base64Input,
|
source: base64Input,
|
||||||
rules: [{ message: 'Invalid base64 string', validator: (value) => true || window.atob(value) }],
|
rules: [{ message: 'Invalid base64 string', validator: (value) => window.atob(value) }],
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue