@@ -129,8 +129,9 @@ function ProcessProxy(processToSpawn, arguments,
129129 }
130130
131131
132- this . _cmdBlacklistRegexes = [ ] ;
133- if ( typeof ( processCmdBlacklistRegex ) == 'undefined' ) {
132+ this . _cmdBlacklistRegexes = [ ] ; // holds RegExp objs
133+ this . _cmdBlacklistRegexesConfs = processCmdBlacklistRegex ; // retains orig configs
134+ if ( typeof ( processCmdBlacklistRegex ) == 'undefined' ) {
134135 // nothing to do
135136 } else {
136137 // parse them
@@ -316,7 +317,6 @@ ProcessProxy.prototype._parseRegexConfigs = function(regexConfigsToConvert) {
316317 try {
317318
318319 if ( typeof ( regexConf . flags ) != 'undefined' ) {
319- console . log ( regexConf . regex ) ;
320320 parsed = new RegExp ( regexConf . regex , regexConf . flags ) ;
321321 } else {
322322 parsed = new RegExp ( regexConf . regex ) ;
@@ -412,7 +412,6 @@ ProcessProxy.prototype._handleCommandFinished = function(command) {
412412* Returns true if the command is blacklisted due to a match, false on no matches
413413*/
414414ProcessProxy . prototype . _commandIsBlacklisted = function ( command ) {
415-
416415 for ( var i = 0 ; i < this . _cmdBlacklistRegexes . length ; i ++ ) {
417416 var regexp = this . _cmdBlacklistRegexes [ i ] ;
418417 var result = regexp . exec ( command ) ;
@@ -903,7 +902,7 @@ ProcessProxy.prototype.getStatus = function() {
903902 'options' :this . _processOptions ,
904903 'isValid' :this . _isValid ,
905904 'createdAt' :( this . _createdAt ? this . _createdAt . toISOString ( ) : null ) ,
906- 'cmdBlacklistRegexes' :this . _cmdBlacklistRegexes ,
905+ 'cmdBlacklistRegexes' :this . _cmdBlacklistRegexesConfs ,
907906 'invalidateOnRegexConfig' :this . _invalidateOnRegexConfig ,
908907 'autoInvalidationConfig' :this . _autoInvalidationConfig ,
909908 'activeCommandStack' :[ ] ,
0 commit comments