same as https://github.com/bower/search/pull/18/files#r10193237