Terry-Mao / gopush-cluster

Golang push server cluster
GNU General Public License v3.0
2.08k stars 558 forks source link

bug for regexp #50

Open freelamb opened 8 years ago

freelamb commented 8 years ago

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 commented 8 years ago

这个bug我也遇到了