| if (positions.indexOf('#') >= 0) { | if (positions.indexOf('#') >= 0) { | ||||
| throw new Error('the positions invalid') | throw new Error('the positions invalid') | ||||
| } | } | ||||
| positions = positions.split(';') | |||||
| positions = positions.split(';').filter(item => !!item) | |||||
| } | } | ||||
| return positions.map(item => { | return positions.map(item => { | ||||
| if (typeof item === 'string') { | if (typeof item === 'string') { |