i think its all there man major refactor

This commit is contained in:
Peter Cottle 2012-12-27 14:52:25 -08:00
parent d497bea70c
commit eb0458c299
3 changed files with 12 additions and 0 deletions

View file

@ -43,10 +43,13 @@ ParseWaterfall.prototype.processAllInstants = function(commandStr) {
};
ParseWaterfall.prototype.processInstant = function(commandStr, instantCommands) {
console.log('processing', commandStr, 'with', instantCommands);
_.each(instantCommands, function(tuple) {
var regex = tuple[0];
console.log('the regex', regex);
var results = regex.exec(commandStr);
if (results) {
console.log('results', results);
// this will throw a result
tuple[1](results);
}