mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 00:13:47 +03:00
fix embarrasing bug in checking if string is ascii
result reversed for issue #179 and issue #157
This commit is contained in:
parent
edb6e8d15c
commit
81c179bb4c
1 changed files with 2 additions and 2 deletions
|
@ -698,8 +698,8 @@ func analyze(ctx context.Context, log mlog.Log, resolver dns.Resolver, d deliver
|
|||
func isASCII(s string) bool {
|
||||
for _, b := range []byte(s) {
|
||||
if b >= 0x80 {
|
||||
return true
|
||||
return false
|
||||
}
|
||||
}
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue