Skip to content

Commit

Permalink
v1.0.1 fix comment split when comma sign present
Browse files Browse the repository at this point in the history
  • Loading branch information
nixargh committed Aug 2, 2023
1 parent d0e4277 commit b98bb9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit b98bb9c

Please sign in to comment.