params)
let page_RE = Pcre.regexp "¶m\\.page=\\d+"
-let identifier_RE = Pcre.regexp "^\\s*\\w+\\s*$"
+let identifier_RE = Pcre.regexp "^\\s*(\\w|')+\\s*$"
+let qualified_mutind_RE =
+ Pcre.regexp "^\\s*cic:(/(\\w|')+)+\\.ind#xpointer\\(1/\\d+\\)\\s*$"
let query_kind_of_req (req: Http_types.request) =
match req#path with
let exec_action dbd (req: Http_types.request) outchan =
let term_str = req#param "expression" in
try
- if req#path = "/elim" && not (Pcre.pmatch ~rex:identifier_RE term_str) then
+ if req#path = "/elim" &&
+ not (Pcre.pmatch ~rex:identifier_RE term_str ||
+ Pcre.pmatch ~rex:qualified_mutind_RE term_str) then
raise Not_a_MutInd;
let (context, metasenv) = ([], []) in
let id_to_uris_raw =