mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-07-08 18:54:05 -04:00
fix(base64-to-string): prevent validation error
This commit is contained in:
parent
750a76b00f
commit
8a9e7888de
@ -58,7 +58,7 @@ const textOutput = computed(() => {
|
||||
const { copy: copyText } = useCopy({ source: textOutput, text: 'String copied to the clipboard' });
|
||||
const b64Validation = useValidation({
|
||||
source: base64Input,
|
||||
rules: [{ message: 'Invalid base64 string', validator: (value) => true || window.atob(value) }],
|
||||
rules: [{ message: 'Invalid base64 string', validator: (value) => window.atob(value) }],
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user