Skip to content

Commit

Permalink
Fix 500 on an empty query in request
Browse files Browse the repository at this point in the history
tr can accept and return an empty sequence.
  • Loading branch information
simar0at committed Jan 29, 2025
1 parent 80bd4fb commit cf6f1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vicav.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ function vicav:get_sample_persons($type as xs:string*) {
<persons>{$out}</persons>)
};

declare function vicav:tr($string as xs:string) {
declare function vicav:tr($string as xs:string?) {
let $tr := translate($string,
"ᵃᵉⁱᵒᵘᵊʰʷʸˢᶴQāēīōūḅṭḍṣẓḏšžṛḥṃǧġʕʔ",
"aeiouehwyssqaeioubtdszdszrhmgg??"
Expand Down

0 comments on commit cf6f1f4

Please sign in to comment.