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

Fix metrictank-1990 #1

Merged
merged 6 commits into from
Jul 7, 2021
Merged

Fix metrictank-1990 #1

merged 6 commits into from
Jul 7, 2021

Conversation

Dieterbe
Copy link

No description provided.

* only allow "=" as key-value delimiter (not ":" because our values may contain it)
* only allow "#" to start comments (not ";" because our values may contain it)
* don't require # to have a preceeding space. e.g. a line like
  "foo=bar#baz" will consider "#baz" to be a comment.  Whether this is
  desirable is arguable but at least it makes it simpler to reason about
* test behavior of s.ValueOfWithoutComments()
* add tests to verify tolerance of special characters in values
Copy link

@fkaleo fkaleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better now

@Dieterbe Dieterbe merged commit 2593eb8 into master Jul 7, 2021
@Dieterbe Dieterbe deleted the fix-mt-1990 branch July 7, 2021 12:29
Dieterbe added a commit to grafana/carbon-relay-ng that referenced this pull request Jul 7, 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
2 participants