Skip to content

base64 decoding drops characters when there is whitespace in the middle #13657

Closed
@seishun

Description

@seishun
  • Version: 8.1.0 and master
  • Platform: all
  • Subsystem: buffer
console.log(Buffer.from(" YWJvcnVtLg", 'base64').toString());

expected:

aborum.

actual:

aborum

I suspect e77a83f. This is also the cause for #13636. cc @addaleax

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions