Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Support whitespaces in data #15

@RazrFalcon

Description

@RazrFalcon
let (data, _) = try "data:text/plain;base64,\nAAECA3Rl\nc3QK".dataURIDecoded()
print(String(bytes: data, encoding: .utf8)!.debugDescription)

This code prints \nAAECA3Rl\nc3QK, while it should print \0\u{01}\u{02}\u{03}test\n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions