mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: 兼容小写
This commit is contained in:
parent
5c731477c1
commit
edda274811
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
})
|
||||
: [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue