fix a bug of panic when lyric is empty

This commit is contained in:
tramhao 2021-02-28 13:52:22 +08:00
parent efc3a43ef8
commit 83872c9b3d

View File

@ -23,8 +23,10 @@ func init() {
}
func looksLikeLRC(s string) bool {
if s[0] == 239 || s[0] == 91 {
return true
if s != "" {
if s[0] == 239 || s[0] == 91 {
return true
}
}
return false
}