We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7779f2c commit 976e772Copy full SHA for 976e772
src/main/xar-resources/modules/util.xqm
@@ -66,7 +66,7 @@ declare function ut:tail($seq as item()*) as item()* {
66
: @return the URI of the created collection
67
:)
68
declare function ut:mkcol($uri as xs:string) as xs:string {
69
- let $parts := fn:tokenize(substring-after($uri, "/db"), "/")[fn:string-length(.) gt 0]
+ let $parts := fn:tokenize(substring-after($uri, "/db"), "/") ! .[fn:string-length(.) gt 0]
70
return
71
let $_ := ut:_mkcol("/db/" || ut:head($parts), ut:tail($parts))
72
0 commit comments