Skip to content

Offchain message SDK needs to allow linefeeds in restricted ASCII set #314

@steveluscher

Description

@steveluscher

Add 0x0A here.

See anza-xyz/agave#7628.

pub fn is_printable_ascii(data: &[u8]) -> bool {
for &char in data {
if !(0x20..=0x7e).contains(&char) {
return false;
}
}
true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions