-
Notifications
You must be signed in to change notification settings - Fork 3
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
Line is not parsed if added with tabs instead of spaces #6
Comments
I think the problem is how we Split the line Line 52 in 591dda1
Tabs are not handled if split is done in this way |
It seems that using strings.Fields() https://golang.org/pkg/strings/#Fields |
Also we should use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I manually add a new line to the hosts file in this format:
[ip.ad.dre.ss]\t\t[hostname]\t\t[#comment]
The line is parsed as Comment and not ADDRESS
If the same line is added with the format
[ip.ad.dre.ss]\s\s\s\s\s\s\s\s[hostname]\s\s\s\s\s\s\s\s[#comment]
The line is correctly parsed as ADDRESS
The text was updated successfully, but these errors were encountered: