mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
修正ProfileArtis.is对数字格式位置的兼容问题
This commit is contained in:
parent
712281468a
commit
503c046e19
@ -195,6 +195,8 @@ let Data = {
|
||||
if (lodash.isString(arr)) {
|
||||
arr = arr.replace(/\s*(;|;|、|,)\s*/, ',')
|
||||
arr = arr.split(',')
|
||||
} else if (typeof (arr) === 'number') {
|
||||
arr = [arr.toString()]
|
||||
}
|
||||
lodash.forEach(arr, (str, idx) => {
|
||||
if (!lodash.isUndefined(str)) {
|
||||
|
@ -119,7 +119,7 @@ export default class ProfileArtis extends Base {
|
||||
isAttr (attr, pos = '3,4,5') {
|
||||
let mainAttr = this.mainAttr()
|
||||
let check = true
|
||||
Data.eachStr(pos, (p) => {
|
||||
Data.eachStr(pos.toString(), (p) => {
|
||||
if (!attr.split(',').includes(mainAttr[p])) {
|
||||
check = false
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user