fix: 兼容小写

This commit is contained in:
bietiaop 2024-09-02 17:09:14 +08:00
parent 5c731477c1
commit edda274811

View file

@ -55,7 +55,7 @@ export class Abyss extends ZZZPlugin {
? levelsChar.split('.').map(x => {
const _x = Number(x.trim());
if (!_.isNaN(_x)) return _x;
if (_.isString(x)) return x.charCodeAt(0) - 64;
if (_.isString(x)) return x.toUpperCase().charCodeAt(0) - 64;
return null;
})
: [];