Allow numbers

This commit is contained in:
Jim Lake 2025-07-01 17:59:25 -07:00 committed by LittleChest
parent 380364bd5a
commit 6bdb761479

View File

@ -12,6 +12,9 @@ exports.toString = function (klass) {
}
exports.toClass = function (name) {
if (typeof name === 'number') {
return name;
}
switch (name.toUpperCase()) {
case 'IN': return 1
case 'CS': return 2