添加测试用例
This commit is contained in:
parent
a4ea096e3d
commit
3e2af31678
9 changed files with 335 additions and 130 deletions
2
lrc.go
2
lrc.go
|
@ -122,7 +122,7 @@ func SplitLyric(src []string) *LRCNode {
|
|||
}
|
||||
lrcNode := &LRCNode{
|
||||
time: time2Millisecond(minute, second, millisecond),
|
||||
content: content,
|
||||
content: strings.TrimSpace(content), //去掉前后的空格
|
||||
}
|
||||
return lrcNode
|
||||
}
|
||||
|
|
Reference in a new issue