replace zxq.co/ripple/hanayo
This commit is contained in:
11
vendor/zxq.co/ripple/rippleapi/common/utils.go
vendored
Normal file
11
vendor/zxq.co/ripple/rippleapi/common/utils.go
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// SafeUsername makes a string lowercase and replaces all spaces with
|
||||
// underscores.
|
||||
func SafeUsername(s string) string {
|
||||
return strings.Replace(strings.ToLower(s), " ", "_", -1)
|
||||
}
|
Reference in New Issue
Block a user