diff options
| author | Joel Martin <github@martintribe.org> | 2014-10-06 22:27:28 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-10-06 22:27:28 -0500 |
| commit | ad95503cea8ca85e9188effa87681275283157bf (patch) | |
| tree | f4e5919aeb2351f2ceb60fee4ab988324bfb5dd1 /go/src/reader | |
| parent | 17e1c5f9f4006399398e8bb7e219a79962ebf3f0 (diff) | |
| download | mal-ad95503cea8ca85e9188effa87681275283157bf.tar.gz mal-ad95503cea8ca85e9188effa87681275283157bf.zip | |
go: add step6_file
Diffstat (limited to 'go/src/reader')
| -rw-r--r-- | go/src/reader/reader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/src/reader/reader.go b/go/src/reader/reader.go index d4b7510..35aefd7 100644 --- a/go/src/reader/reader.go +++ b/go/src/reader/reader.go @@ -40,7 +40,7 @@ func tokenize (str string) []string { results := make([]string, 0, 1) re := regexp.MustCompile(`[\s,]*(~@|[\[\]{}()'~^@]|"(?:\\.|[^\\"])*"|;.*|[^\s\[\]{}('",;)]*)`) for _, group := range re.FindAllStringSubmatch(str, -1) { - if group[1] == "" { continue } + if (group[1] == "") || (group[1][0] == ';') { continue } results = append(results, group[1]) } return results |
