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

bug for regexp #50

Open
freelamb opened this issue Oct 24, 2016 · 1 comment
Open

bug for regexp #50

freelamb opened this issue Oct 24, 2016 · 1 comment

Comments

@freelamb
Copy link

file path: message/redis.go

reg := regexp.MustCompile("(.+)@(.+)#(.+)|(.+)@(.+)")

This match for ""@""# or ""@"", but for the file like *.conf, comment(#) is not required.

So, it's a good idea for change to the following

reg := regexp.MustCompile("(.+)@(.+)")
@imaben
Copy link

imaben commented Oct 24, 2016

这个bug我也遇到了

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

No branches or pull requests

2 participants