Commit d59b7ae0 authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

accept '-' in routes:document route. #8

parent eeb57040
Loading
Loading
Loading
Loading
+1 −1
Changes for src/main/core/routes.xqm: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ declare
%rest:GET
%output:method("html")
%output:html-version('5')
%rest:path("/{$lang=[a-z]{2}}/{$collection=.+}/{$doc=[a-zA-Z0-9_]+}.html")
%rest:path("/{$lang=[a-z]{2}}/{$collection=.+}/{$doc=[a-zA-Z0-9_\-]+}.html")
function routes:document($lang as xs:string, $collection as xs:string?, $doc as xs:string){
    try{
        utils:doc-to-html($collection, $doc, $lang)