-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
whitespace hosts lines halting script #8
Comments
Right you are, Chris. Thanks. |
StevenBlack
added a commit
that referenced
this issue
Jan 2, 2015
…hitespace preceding comments. Thanks @caneylan.
Thank you @caneylan — closing this now. |
StevenBlack
pushed a commit
that referenced
this issue
Dec 10, 2016
mitchellkrogza
pushed a commit
to mitchellkrogza/hosts
that referenced
this issue
Aug 14, 2017
merge Former-commit-id: e36136a Former-commit-id: 53b1861cb472ebfc12c93c958efc8a85594cc1ce
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!
The current version of the hosts files for someonewhocares.org contains a line with a single space, which is breaking the file parser:
The removeDups() function only tests for lines that start with '#' or a newline. So a line consisting of spaces and a newline will make it into the stripRule() function and halt the script. The test can be updated to test for any line consisting of only whitespace:
--Chris
The text was updated successfully, but these errors were encountered: