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 { 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…
	
		Reference in New Issue
	
	Block a user