INNER CODE UNIT · JavaScript

doMatch

microsoft/azuredevopslabs · js/jekyll-search.js:59

            function doMatch(string, crit) {
                return string.toLowerCase().indexOf(crit.toLowerCase()) >= 0
            }
            var self = this;
            self.matches = function(string, crit) {
                return "string" != typeof string ? !1 : (string = string.trim(), doMatch(string, crit))
            }
        }
        module.exports = new LiteralSearchStrategy
    }, {}],
    4: [function(require, module) {
        module.exports = function() {
            function findMatches(store, crit, strategy) {
                for (var data = store.get(), i = 0; i < data.length && matches.length < limit; i++) findMatchesInObject(data[i], crit, strategy);
                return matches
            }

            function findMatchesInObject(obj, crit, strategy) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…