rem: this.pattern = pattern; var strategyName = 'glob'; if (/^([a-zA-Z]+):(.*)/.test(pattern)) { strategyName = RegExp.$1; pattern = RegExp.$2; } strategyClassName = strategyName.ucfirst() + 'MatchStrategy'; if (! PatternMatcher[strategyClassName]) { throw new SeleniumError("cannot find PatternMatcher." + strategyClassName); } this.strategy = new PatternMatcher[strategyClassName](pattern); 
add: this.selectStrategy(pattern); 
context: PatternMatcher = function(pattern) {    this.pattern = pattern;    var strategyName = 'glob'; // by default    if (/^([a-zA-Z]+):(.*)/.test(pattern)) {        strategyName = RegExp.$1;        pattern = RegExp.$2;    }    strategyClassName = strategyName.ucfirst() + 'MatchStrategy';    if (! PatternMatcher[strategyClassName]) {        throw new SeleniumError("cannot find PatternMatcher." + strategyClassName);    }    this.strategy = new PatternMatcher[strategyClassName](pattern);};
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3428/c23d8c75e575edee0609da00f3d91908b062e9b5/selenium-api.js/buggy/code/javascript/selenium-api.js