Skip to content

Commit

Permalink
Prevent FORX0003 error - could match empty string
Browse files Browse the repository at this point in the history
err:FORX0003 regular expression could match empty string
  • Loading branch information
joewiz committed May 13, 2023
1 parent 2198e16 commit 3f8f9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/xar-resources/modules/app.xql
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ declare %private function app:print-parameters($params as element(xqdoc:param)*)
};

declare %private function app:get-extended-doc($function as element(xqdoc:function)) {
let $name := replace($function/xqdoc:name, "([^:]+:)?(.*)$", "$2")
let $name := replace($function/xqdoc:name, "([^:]+:)?(.+)$", "$2")
let $arity := count($function/xqdoc:comment/xqdoc:param)
let $prefix := $function/ancestor::xqdoc:xqdoc/xqdoc:module/xqdoc:name
let $prefix := if ($prefix/text()) then $prefix else "fn"
Expand Down

0 comments on commit 3f8f9dd

Please sign in to comment.