fix random ordering in search, fixes #2047

pull/255/head
zadam 2021-06-29 20:54:56 +07:00
parent 995e6c2fef
commit 61e78858bc
1 changed files with 1 additions and 1 deletions

@ -114,7 +114,7 @@ class ValueExtractor {
cursor = cursor.children[0]; cursor = cursor.children[0];
} }
else if (cur() === 'random') { else if (cur() === 'random') {
return Math.random(); return Math.random().toString(); // string is expected for comparison
} }
else if (cur() in PROP_MAPPING) { else if (cur() in PROP_MAPPING) {
return cursor[PROP_MAPPING[cur()]]; return cursor[PROP_MAPPING[cur()]];