提交 f93329f9 编写于 作者: L lion

ignore the comment line which start with #

上级 0de6ceb8
......@@ -53,6 +53,12 @@ func IterateSegments(handle *os.File, before func(l string), cb func(seg *Segmen
scanner.Split(bufio.ScanLines)
for scanner.Scan() {
var l = strings.TrimSpace(strings.TrimSuffix(scanner.Text(), "\n"))
// ignore the comment line
if l[0] == '#' {
continue
}
if before != nil {
before(l)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册