client/assets/scripts/services/search.js
function (query, string, exact) {
        if (typeof string !== 'string' || string === '') {
          return false;
        }
        if (exact) {
          return string.toLowerCase() === query.toLowerCase();
        }
        return string.toLowerCase().indexOf(query.toLowerCase()) !== -1;
      }
function (query, string, exact) {
        if (typeof string !== 'string' || string === '') {
          return false;
        }
        if (exact) {
          return string.toLowerCase() === query.toLowerCase();
        }
        return string.toLowerCase().indexOf(query.toLowerCase()) !== -1;
      }
function ( query , string , exact ) { if ( typeof string !== 'string' || string === '' ) { return false ; } if ( exact ) { return string . toLowerCase ( ) === query . toLowerCase ( ) ; } return string . toLowerCase ( ) . indexOf ( query . toLowerCase ( ) ) !== - 1 ; }
Search in string field
Search in string field