function searchFilter(mock) {
            if (!vm.searchUrl || !mock.expression) {
                return true;
            }

            return vm.searchUrl.match(mock.expression);
        }
/**
         * Check if the expression of the mock matches the searchUrl.
         * @param mock A mock.
         */
Check if the expression of the mock matches the searchUrl.
@param mock A mock.
Check if the expression of the mock matches the searchUrl . @param mock A mock .
function searchFilter(mock) {
            if (!vm.searchUrl || !mock.expression) {
                return true;
            }
            return vm.searchUrl.match(mock.expression);
        }
function searchFilter ( mock ) { if ( ! vm . searchUrl || ! mock . expression ) { return true ; } return vm . searchUrl . match ( mock . expression ) ; }
Check if the expression of the mock matches the searchUrl.
Check if the expression of the mock matches the searchUrl .