Skip to content

Commit f8b2c31

Browse files
authored
Merge pull request #1 from PassKit/whitespace-fix
Remove leading & trailing spaces from field values.
2 parents e8fe30d + 3ca0623 commit f8b2c31

File tree

4 files changed

+1
-1
lines changed

4 files changed

+1
-1
lines changed

bin/encrypted-link-generator-linux

71.5 KB
Binary file not shown.

bin/encrypted-link-generator-osx

68.4 KB
Binary file not shown.
280 KB
Binary file not shown.

src/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func main() {
9595
}
9696
record := map[string]string{}
9797
for i, fieldValue := range rec {
98-
record[fields[i]] = fieldValue
98+
record[fields[i]] = strings.TrimSpace(fieldValue)
9999
}
100100
records++
101101
jsonBytes, err := json.Marshal(record)

0 commit comments

Comments
 (0)