Skip to content

Commit

Permalink
Merge pull request #1 from PassKit/whitespace-fix
Browse files Browse the repository at this point in the history
Remove leading & trailing spaces from field values.
  • Loading branch information
pkosterman authored Jun 15, 2020
2 parents e8fe30d + 3ca0623 commit f8b2c31
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
Binary file modified bin/encrypted-link-generator-linux
Binary file not shown.
Binary file modified bin/encrypted-link-generator-osx
Binary file not shown.
Binary file modified bin/encrypted-link-generator-windows.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func main() {
}
record := map[string]string{}
for i, fieldValue := range rec {
record[fields[i]] = fieldValue
record[fields[i]] = strings.TrimSpace(fieldValue)
}
records++
jsonBytes, err := json.Marshal(record)
Expand Down

0 comments on commit f8b2c31

Please sign in to comment.