mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2025-12-12 16:10:04 +01:00
Type/what consistency for shorthands and cases
This commit is contained in:
parent
83b7dc1bb8
commit
da1417ce2f
3 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue