UNPKG

290 BJavaScriptView Raw
1(function() {
2 var stringScore;
3
4 stringScore = require('../vendor/stringscore');
5
6 module.exports = {
7 filter: require('./filter'),
8 score: function(string, query) {
9 if (!query) {
10 return 0;
11 }
12 return stringScore(string, query);
13 }
14 };
15
16}).call(this);