Merge pull request #82 from stapelberg/patch-2

ParseLine: ignore empty lines (instead of crashing)
This commit is contained in:
Alex Bee 2016-02-25 22:18:06 +00:00
commit 6eefee83e9
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,10 @@ func (line *Line) Public() bool {
func ParseLine(s string) *Line {
line := &Line{Raw: s}
if s == "" {
return nil
}
if s[0] == '@' {
var rawTags string
line.Tags = make(map[string]string)