finnfiddle / words-to-numbers

JS library to convert textual words to numbers with optional fuzzy text matching
MIT License
248 stars 57 forks source link

wordsToNumbers('xxxxxxx one hundred') = null #10

Closed bhoomika911 closed 7 years ago

bhoomika911 commented 7 years ago

Hi...

This is great package for word to number conversion.But is there possible that if there is word like xxxxx which is not related to any number is return same as it passed like....

Expected wordsToNumbers('xxxxxxx one hundred') = xxxxxxx 100

Current output wordsToNumbers('xxxxxxx one hundred') = null

Can any one help?

finnfiddle commented 7 years ago

sorry for the delay, I will be pushing a fix tomorrow. Completely refactored the whole library using ohm.js so now things will work much better

finnfiddle commented 7 years ago

fixed in fc621fed10c9aa2047059da35472de59f48351ee (v1.2.2 on npm) - closing. thanks for the feedback