function parseRestrictDirective_(filterElement) {
    var match = /^is:(.*)$/.exec(filterElement);
    if (!match)
      return null;
    if (match[1] == 'active') {
      return function(sourceEntry) {
        return !sourceEntry.isInactive();
      };
    }
    if (match[1] == 'error') {
      return function(sourceEntry) {
        return sourceEntry.isError();
      };
    }
    return null;
  }
/**
   * Tries to parses |filterElement| as a single "is:" directive, and returns a
   * new filter function.  Returns null on failure.
   */
Tries to parses |filterElement| as a single "is:" directive, and returns a
new filter function.  Returns null on failure.
Tries to parses |filterElement| as a single " is : " directive and returns a new filter function . Returns null on failure .
function parseRestrictDirective_(filterElement) {
    var match = /^is:(.*)$/.exec(filterElement);
    if (!match)
      return null;
    if (match[1] == 'active') {
      return function(sourceEntry) {
        return !sourceEntry.isInactive();
      };
    }
    if (match[1] == 'error') {
      return function(sourceEntry) {
        return sourceEntry.isError();
      };
    }
    return null;
  }
function parseRestrictDirective_ ( filterElement ) { var match = / ^is:(.*)$ / . exec ( filterElement ) ; if ( ! match ) return null ; if ( match [ 1 ] == 'active' ) { return function ( sourceEntry ) { return ! sourceEntry . isInactive ( ) ; } ; } if ( match [ 1 ] == 'error' ) { return function ( sourceEntry ) { return sourceEntry . isError ( ) ; } ; } return null ; }
Tries to parses |filterElement| as a single "is:" directive, and returns a
 new filter function.
Tries to parses |filterElement| as a single " is : " directive and returns a new filter function .