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

add function to eat dots #34

Merged
merged 3 commits into from
Jul 18, 2019
Merged

add function to eat dots #34

merged 3 commits into from
Jul 18, 2019

Conversation

robert-milan
Copy link
Contributor

Adds a function which eats all multiple consecutive dots and removes leading and trailing dots. This does NOT implement usage of the function. That should be done in separate pull requests in the respective repositories where it is required.

See also: https://github.com/raintank/tsdb-gw/issues/64 grafana/metrictank#1008 grafana/metrictank#811 grafana/carbon-relay-ng#296

@robert-milan
Copy link
Contributor Author

Looks good to me. It's mine so I can't approve it. Also in case anyone was interested I did initially try it with regexp just to see how the performance was, and it was terrible.

Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@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.

Looks good and can't think of a more efficient way.

Co-Authored-By: Dieter Plaetinck <dieter@grafana.com>
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

Successfully merging this pull request may close these issues.

4 participants