Because sweet girls are the best, officially rebranding Logarion to Kosuzu
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/kosuzu/trunk@73 eb64cd80-c68d-6f47-b6a3-0ada418499da
This commit is contained in:
4
lib/dune
4
lib/dune
@@ -1,4 +1,4 @@
|
||||
(library
|
||||
(name logarion)
|
||||
(public_name logarion)
|
||||
(name kosuzu)
|
||||
(public_name kosuzu)
|
||||
(libraries text_parse text_parse.parsers unix str msgpck))
|
||||
|
||||
5
lib/validate.ml
Normal file
5
lib/validate.ml
Normal file
@@ -0,0 +1,5 @@
|
||||
let validate_id_length s = String.length s <= 32
|
||||
let validate_id_chars s = try
|
||||
String.iter (function 'a'..'z'|'A'..'Z'|'0'..'9'-> () | _ -> raise (Invalid_argument "")) s;
|
||||
true
|
||||
with Invalid_argument _ -> false
|
||||
Reference in New Issue
Block a user