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

When prefix is empty, no more dots should be written #1004

Closed
zhijian-pro opened this issue Mar 17, 2022 · 1 comment · Fixed by #1005
Closed

When prefix is empty, no more dots should be written #1004

zhijian-pro opened this issue Mar 17, 2022 · 1 comment · Fixed by #1005

Comments

@zhijian-pro
Copy link
Contributor

When prefix is empty, no more dots should be written

for _, c := range prefix {
if _, err := buf.WriteRune(c); err != nil {
return err
}
}
if err := buf.WriteByte('.'); err != nil {
return err
}

@zhijian-pro
Copy link
Contributor Author

zhijian-pro commented Mar 17, 2022

Looks like a bug,I'll be happy to fix it.

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 a pull request may close this issue.

1 participant