Skip to content

Commit 2337ab2

Browse files
committed
force words to lower and types to upper for issue #6
1 parent b516829 commit 2337ab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/methods.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async function prepareSentence(words, types, props, language){
3232
const pastersSn = await rt.ref(`${language}/PASTERS`).get()
3333
const pasters = pastersSn.val() || {};
3434

35-
[words, types] = await solveMISC(words, types, rt.ref(`${language}/DEFINITIVES/MISC`))
35+
[words, types] = await solveMISC(words.map(w => w.toLowerCase()), types.map(t => t.toUpperCase()), rt.ref(`${language}/DEFINITIVES/MISC`))
3636

3737
const prepared = [];
3838
let i=0;

0 commit comments

Comments
 (0)