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

Allow for trailing comments in lists #1162

Closed
wants to merge 5 commits into from
Closed

Allow for trailing comments in lists #1162

wants to merge 5 commits into from

Conversation

ForkedLightning
Copy link

Feature addition for behavior similar to hosts file.
The hash (#) symbol and trailing characters are dropped.

Example line: www.example.com #comment
Current Behavior: Line is ignored.
Proposed Behavior: "www.example.com" is used.

Example line: #www.example.com #comment
Current Behavior: Line is ignored.
Proposed Behavior: Line is truncated to "" and ignored.

Potential hazards:
Will break users' current lists that rely on the hash symbol to invalidate lines.
Potential performance degradation when reading large lists.

Reference: #1158

Allow for comments trailing an entry without dropping the whole line.
Allow for comments trailing an entry without dropping the whole line.
Allow for comments trailing an entry without dropping the whole line.
Allow for comments trailing an entry without dropping the whole line.
Allow for comments trailing an entry without dropping the whole line.
@jedisct1 jedisct1 closed this in 349320f Jan 25, 2020
@DNSCrypt DNSCrypt locked and limited conversation to collaborators Feb 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant