git.annexia.org
/
whenjobs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent users from setting JOBSERIAL and from setting variables with invalid names.
[whenjobs.git]
/
lib
/
whenutils.ml
diff --git
a/lib/whenutils.ml
b/lib/whenutils.ml
index
9614ef8
..
cdfca47
100644
(file)
--- a/
lib/whenutils.ml
+++ b/
lib/whenutils.ml
@@
-41,6
+41,9
@@
module StringSet = Set.Make (String)
let (//) = Filename.concat
+let isalpha = function 'a'..'z' | 'A'..'Z' -> true | _ -> false
+let isalnum = function 'a'..'z' | 'A'..'Z' | '0'..'9' -> true | _ -> false
+
let rec filter_map f = function
| [] -> []
| x :: xs ->