Skip to content

parse_size uses rstrip instead of replace for unit suffixes #13

@popey

Description

@popey

sbom-vm.py:49-54str.rstrip('GB') strips any combination of the characters 'G' and 'B' from the right, not the substring "GB".

Use size_str.replace('GB', '') or slice the string instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions