HCoop
/
bpt
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase domain component length limit
[bpt/portal.git]
/
util.sml
diff --git
a/util.sml
b/util.sml
index
a9ed02b
..
d1c7214
100644
(file)
--- a/
util.sml
+++ b/
util.sml
@@
-34,7
+34,7
@@
fun mult (r1, r2) = real r1 * r2
fun isIdent ch = Char.isLower ch orelse Char.isDigit ch orelse ch = #"-"
fun validHost s =
fun isIdent ch = Char.isLower ch orelse Char.isDigit ch orelse ch = #"-"
fun validHost s =
- size s > 0 andalso size s <
2
0 andalso List.all isIdent (String.explode s)
+ size s > 0 andalso size s <
4
0 andalso List.all isIdent (String.explode s)
fun validDomain s =
size s > 0 andalso size s < 100 andalso List.all validHost (String.fields (fn ch => ch = #".") s)
fun validDomain s =
size s > 0 andalso size s < 100 andalso List.all validHost (String.fields (fn ch => ch = #".") s)