Skip to content

Conversation

@himself65
Copy link
Member

No description provided.

@jazzberry-ai
Copy link

jazzberry-ai bot commented Aug 2, 2025

Bug Report

Name Severity Example test case Description
Invalid character handling in non-strict mode Low import { base64 } from "./base64";\n\nit("should not throw error on invalid characters in non-strict mode", () => {\n const base64WithInvalid = "SGVsbG8s#IFdv$cmxk%IQ==";\n expect(() => base64.decode(base64WithInvalid, { strict: false })).toThrow(\n 'Invalid Base64 character: "#"',\n );\n}); The base64Decode function throws an error when encountering invalid characters even when strict is false. This is inconsistent with some Base64 implementations, where invalid characters are ignored in non-strict mode.

Comments? Email us.

@himself65 himself65 marked this pull request as draft August 3, 2025 00:21
@himself65 himself65 marked this pull request as ready for review August 3, 2025 00:29
@himself65 himself65 marked this pull request as draft August 3, 2025 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant