Skip to content

Commit

Permalink
examples/webster1913-convert: Fixed end license being included as a word
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed May 28, 2020
1 parent a4519b2 commit 4e955b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/webster1913-convert/webster1913/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ func Parse(r io.Reader, progress func(i int, w string)) (Dict, error) {
lnt := bytes.TrimSpace(ln)
blankLine := len(lnt) == 0

if bytes.HasPrefix(lnt, []byte("*** END")) {
break
}

if entryWordRe.Match(ln) {
if state == StateNone {
// skip the file header(up to the word "A")
Expand Down

0 comments on commit 4e955b7

Please sign in to comment.