Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mss opened this issue Sep 23, 2024 · 0 comments
Open

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

mss opened this issue Sep 23, 2024 · 0 comments

Comments

@mss
Copy link

mss commented Sep 23, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant