Type/what consistency for shorthands and cases

This commit is contained in:
Bán Dénes 2022-12-18 12:37:44 +01:00
parent 83b7dc1bb8
commit da1417ce2f
3 changed files with 8 additions and 8 deletions

View file

@ -17,7 +17,7 @@ exports.operation = (str, choices={}, order=Object.keys(choices)) => {
let res = op_prefix(str)
for (const key of order) {
if (choices[key].includes(res.name)) {
res.type = key
res.what = key
break
}
}