rem: var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"]\\);", "gm"); 
add: var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"].*\\);", "gm"); 
context: function find_config_w32(dirname){	if (!FSO.FolderExists(dirname)) {		return;	}	var f = FSO.GetFolder(dirname);	var	fc = new Enumerator(f.SubFolders);	var c, i, ok, n;	var item = null;	var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"]\\);", "gm");		for (; !fc.atEnd(); fc.moveNext())	{		ok = true;		/* check if we already picked up a module with the same dirname;		 * if we have, don't include it here */		n = FSO.GetFileName(fc.item());				if (n == 'CVS' || n == 'tests')			continue;				//	WScript.StdOut.WriteLine("checking " + dirname + "/" + n);		if (MODULES.Exists(n)) {			WScript.StdOut.WriteLine("Skipping " + dirname + "/" + n + " -- already have a module with that name");			continue;		}					c = FSO.BuildPath(fc.item(), "config.w32");		if (FSO.FileExists(c)) {//			WScript.StdOut.WriteLine(c);			var dir_line = "configure_module_dirname = condense_path(FSO.GetParentFolderName('"							   	+ c.replace(new RegExp('(["\\\\])', "g"), '\\$1') + "'));\r\n";			var contents = file_get_contents(c);			var deps = new Array();			// parse out any deps from the file			var calls = contents.match(re_dep_line);			if (calls != null) {				for (i = 0; i < calls.length; i++) {					// now we need the extension name out of this thing					if (calls[i].match(re_dep_line)) {//						WScript.StdOut.WriteLine("n depends on " + RegExp.$1);						deps[deps.length] = RegExp.$1;					}				}			}			item = new Module_Item(n, c, dir_line, deps, contents);			MODULES.Add(n, item);		}	}}
meta: 631	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/510dd7cca578e097a3ba7f615a19820c1337d29a/buildconf.js/buggy/win32/build/buildconf.js