0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

wildcarded searches now use asterisk, not tilda

This commit is contained in:
Bren Norris 2017-04-11 20:17:24 -04:00
parent 71d5e5f150
commit 94f4cd2be1

View file

@ -12,7 +12,7 @@ function Search() {
}
Search.prototype.query = function(q) {
return q === '~'
return q === '*'
? this.storage.config.localList.get().map( function( package ){ return { ref: package, score: 1 }; } )
: this.index.search(q);
}