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