Skip to content

Documentation of --safe-account-names does not match implementation #126

@mss

Description

@mss

The --help explains --safe-account-names as

In profiles, replace any character sequences in account names not in A-Za-z0-9-._ with a single -

The code replaces a different set of characters though:

def get_safe_account_name(name):
    return re.sub(r"[\s\[\]]+", "-", name).strip("-")

I don't know what the intended behaviour is since the regex looks like something which will generate a "safe" name whereas the description sounds like something which would generate a more "sensible" name (in my case I happen to have slashes in the account names).

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