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

Validation regex malformed #955

Closed
chrismarget-j opened this issue Oct 30, 2024 · 0 comments · Fixed by #958
Closed

Validation regex malformed #955

chrismarget-j opened this issue Oct 30, 2024 · 0 comments · Fixed by #958

Comments

@chrismarget-j
Copy link
Collaborator

Regex should read ^[a-zA-Z0-9._-]+$

Right now that character class includes .-_ which permits . (0x2e) through _ (0x95), which is most printable ASCII characters.

But does not include - (0x2d) which we meant to include.

Need to fix this instance, and anywhere else the same mistake has been made.

https://github.com/Juniper/terraform-provider-apstra/blob/2b696be62d9198b77c90daba4bbcfdbcac1042b0/apstra/freeform/resource.go#L139C1-L140C1

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 a pull request may close this issue.

1 participant