client/splunk.ui.charting.js
function(q) {
            var workingQ = '' + q;
            workingQ = workingQ.replace(this.reLTrimCommand, '');
            if (workingQ.substring(0, 7) == 'search ') {
                return workingQ.substring(7).replace(this.reLTrimCommand, '');
            }
            return q;
        }
function(q) {
            var workingQ = '' + q;
            workingQ = workingQ.replace(this.reLTrimCommand, '');
            if (workingQ.substring(0, 7) == 'search ') {
                return workingQ.substring(7).replace(this.reLTrimCommand, '');
            }
            return q;
        }
function ( q ) { var workingQ = '' + q ; workingQ = workingQ . replace ( this . reLTrimCommand , '' ) ; if ( workingQ . substring ( 0 , 7 ) == 'search ' ) { return workingQ . substring ( 7 ) . replace ( this . reLTrimCommand , '' ) ; } return q ; }
Returns an unqualified search string by removing any leading 'search '
command.  This method does a simple search at the beginning of the
search.
Returns an unqualified search string by removing any leading search command . This method does a simple search at the beginning of the search .