npms-io / npms-api

The https://npms.io API
MIT License
189 stars 30 forks source link

Search query: if use "-" in keywords filter - plugins are not listed. [Bug] #48

Closed sasha240100 closed 8 years ago

sasha240100 commented 8 years ago

Basically, when you try to search keywords:gulp-util or keywords:whs-component it returns empty list. Each keyword with "-" symbol doesn't work. IMO it is a bug, and i would like to help to solve it (if you don't have a time), just point me where should i look.

image

sasha240100 commented 8 years ago

I thinks it's because of camelCase on this line: https://github.com/npms-io/npms-api/blob/master/lib/util/parseQuery.js#L56

whs-component -> whsComponent

satazor commented 8 years ago

@sasha240100 that's not the problem because it's only camelcasing the keys not the values. Do you know which packages have the keywords you mentioned?

sasha240100 commented 8 years ago

@satazor image image

satazor commented 8 years ago

@sasha240100 I've found the issue and I'm currently fixing it. Will let you know once done.

satazor commented 8 years ago

Fixed, thanks for reporting.

sasha240100 commented 8 years ago

@satazor Nice work. Thanks!