Skip to content

use removeprefix instead of lsplit on tail number processing #68

@n0skill

Description

@n0skill

Because lstrip removes all characters from a string that is present in the parameters set, this might lead to errors:

For instance, OE-EYE

'OE-EYE'.lstrip('OE-')
'YE'

'OE-EYE'.removeprefix('OE-')
'EYE'

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