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

fixed regular expressions to support Unicode and improve readability #267

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eukub
Copy link

@eukub eukub commented Dec 25, 2023

No description provided.

@@ -182,7 +182,7 @@ def _validate_name(name: str):
# Must be a valid GCP VM name, as well as a valid docker tag name. For simplicity, check
# that it's some letters followed by "-bastion", and that it's not too long (VM names are
# capped at 63 chars).
return len(name) < 64 and re.match("[a-z][a-z0-9-]*-bastion", name)
return len(name) < 64 and re.match("[a-z][a-z\d-]*-bastion", name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test that would fail without this change?

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

Successfully merging this pull request may close these issues.

2 participants