ds300 / jetzt

Speed reader extension for chrome
Other
485 stars 124 forks source link

fix punctuations bug #153

Closed gywn closed 8 years ago

gywn commented 8 years ago

Fix a bug where punctuations might be treated as standalone token.

Before:

DOM:    <span>This sentence is too <b>short</b>!</span>
tokens: ["This", "sentence", "is", "too", "short", "!"]

Now:

DOM:    <span>This sentence is too <b>short</b>!</span>
tokens: ["This", "sentence", "is", "too", "short!"]
ds300 commented 8 years ago

Nice fix, thanks! :+1: