用户:RedDragon/Test2:修订间差异
来自Rizline中文维基
更多操作
小 |
小 |
||
| 第98行: | 第98行: | ||
} | } | ||
if (song.title | if (song.title) { | ||
if (song.title !== '?') { | |||
if (song.title !== '') { | |||
songs.push(song) | |||
} | |||
} | |||
} | } | ||
} | } | ||
| 第172行: | 第176行: | ||
if (bgColor.startsWith('rgb')) { | if (bgColor.startsWith('rgb')) { | ||
const rgb = bgColor.match(/\d+/g) | const rgb = bgColor.match(/\d+/g) | ||
if (rgb | if (rgb) { | ||
if (rgb.length === 3) { | |||
return '#' + | |||
('0' + parseInt(rgb[0]).toString(16)).slice(-2) + | |||
('0' + parseInt(rgb[1]).toString(16)).slice(-2) + | |||
('0' + parseInt(rgb[2]).toString(16)).slice(-2) | |||
} | |||
} | } | ||
} | } | ||