添加测试用例

This commit is contained in:
Hami Lemon 2022-03-29 11:16:04 +08:00
parent a4ea096e3d
commit 3e2af31678
9 changed files with 335 additions and 130 deletions

2
lrc.go
View file

@ -122,7 +122,7 @@ func SplitLyric(src []string) *LRCNode {
}
lrcNode := &LRCNode{
time: time2Millisecond(minute, second, millisecond),
content: content,
content: strings.TrimSpace(content), //去掉前后的空格
}
return lrcNode
}