diff --git a/CHANGELOG.md b/CHANGELOG.md index c9b91b9..8147d0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.0.1] - 2023-08-02 +### Fixed +- Don't split comment with `,` sign. + ## [1.0.0] - 2023-07-28 ### Added - First release. diff --git a/main.go b/main.go index 4ff3798..143afc6 100644 --- a/main.go +++ b/main.go @@ -20,7 +20,7 @@ import ( // "github.com/pkg/profile" ) -var version string = "1.0.0" +var version string = "1.0.1" var clog *log.Entry @@ -256,7 +256,7 @@ func parseWorkRecords(records []string) []WorkRecord { for _, record := range records { // Read original fileds - fields := strings.Split(record, ",") + fields := strings.SplitN(record, ",", 5) var wr WorkRecord wr.Date = fields[0]