olivernn / lunr.js

A bit like Solr, but much smaller and not as bright
http://lunrjs.com
MIT License
8.96k stars 548 forks source link

Tokenize whitespace strings correctly #15

Closed ssured closed 11 years ago

ssured commented 11 years ago

Tokenizing " hello" (note leading space) currently results in 2 tokens: ["","hello"]. Should be ["hello"]. See PR for fix

pangratz commented 11 years ago

Seems like a good change! :+1:

@ssured I've opened a PR to add a basic test https://github.com/ssured/lunr.js/pull/1

olivernn commented 11 years ago

Thanks for this, your fix has been included in version 0.3.0