Not sure about this. patternText is different each time at _.each(node.literals, function(literal){ loop.