mozilla/addon-sdk — pull request #737 by jxpx777 (2013-01-23 00:46:36+00:00)
Title: Updating scan_requirements_with_grep to get all require statements from the line

Use finditer and iterate over the MatchObject objects. This handles comma-separated require statements such as those resulting from code minified by GCC, e.g.

var a = require('module');
var b = require('another-module');

would become something like

var a=require,b=a('module'),c=a('another-module');

Previously, only the first require would be registered and code relying on the second would cause an error.