Skip to content

Commit

Permalink
fix index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasassi committed Oct 6, 2019
1 parent 4b38c25 commit 35883f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion document/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func lastPunct(tokens []string, index int) int {
continue
}
if isPunct(token) {
return i
return len(tokens) - index
}
}
return -1
Expand Down

0 comments on commit 35883f9

Please sign in to comment.