mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-04-26 13:49:21 +08:00
fix a bug of panic when lyric is empty
This commit is contained in:
parent
efc3a43ef8
commit
83872c9b3d
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user