Skip to content

Commit

Permalink
Merge pull request #10 from agarciamontoro/parse.canonical.tests.v6
Browse files Browse the repository at this point in the history
Parse canonical tests v6
  • Loading branch information
aquilax authored Apr 21, 2024
2 parents dcdcfba + 3cb684c commit db022f7
Show file tree
Hide file tree
Showing 3 changed files with 344 additions and 19 deletions.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func getTimerFromRawString(s string) (*Timer, error) {
}
index = strings.Index(s, "%")
if index == -1 {
return nil, fmt.Errorf("invalid timer syntax: %s", s)
return &Timer{Name: s, Duration: 0, Unit: ""}, nil
}
isNumeric, f, err := getFloat(s[:index])
if err != nil {
Expand Down
Loading

0 comments on commit db022f7

Please sign in to comment.