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

Regex doesn't match hostname with hyphen #643

Closed
guignome opened this issue Oct 26, 2021 · 1 comment
Closed

Regex doesn't match hostname with hyphen #643

guignome opened this issue Oct 26, 2021 · 1 comment

Comments

@guignome
Copy link

"^(?:((?:[\\w.]+)|(?:\\[.+])):)?" + // host name, or ipv4, or ipv6 address in brackets

This pattern fails with a "Malformed arguments" error if the hostname has a hyphen ( - ) in the name. for example, the hostname "my-vm" doesn't get recognized.

fstab added a commit that referenced this issue Oct 26, 2021
@fstab
Copy link
Member

fstab commented Oct 26, 2021

Thanks for reporting this. I pushed a fix, which will be part of the next release.

@fstab fstab closed this as completed Oct 26, 2021
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

2 participants