Propagate domain validity check code to app
authoradamch <adamch>
Sat, 4 Nov 2006 16:16:35 +0000 (16:16 +0000)
committeradamch <adamch>
Sat, 4 Nov 2006 16:16:35 +0000 (16:16 +0000)
app/app.sml

index dba8cee..b28169f 100644 (file)
@@ -124,7 +124,7 @@ fun apply {name, rname, gname, email, forward, uses, other} =
       | _ => raise Fail "Bad next sequence val"
     end
 
-fun isIdent ch = Char.isLower ch orelse Char.isDigit ch
+fun isIdent ch = Char.isLower ch orelse Char.isDigit ch orelse ch = #"-"
 
 fun validHost s =
     size s > 0 andalso size s < 20 andalso List.all isIdent (String.explode s)