letsencrypt: Storage tests

This commit is contained in:
Matthew Holt
2015-10-18 10:39:28 -06:00
parent 8cd6b8aa99
commit d764111886
2 changed files with 68 additions and 0 deletions

View File

@ -79,6 +79,8 @@ func emailUsername(email string) string {
at := strings.Index(email, "@")
if at == -1 {
return email
} else if at == 0 {
return email[1:]
}
return email[:at]
}