mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
refactor: code-optimization (#1885)
* refactor: code-optimization * fix: restoring code style * fix: gofmt
This commit is contained in:
@ -25,7 +25,7 @@ import (
|
||||
var rePhone *regexp.Regexp
|
||||
|
||||
func init() {
|
||||
rePhone, _ = regexp.Compile("(\\d{3})\\d*(\\d{4})")
|
||||
rePhone, _ = regexp.Compile(`(\d{3})\d*(\d{4})`)
|
||||
}
|
||||
|
||||
func IsEmailValid(email string) bool {
|
||||
|
Reference in New Issue
Block a user