rem: var match = result.value.match(/\/\/ \@(\S+)\s+([^\n]+)/); 
add: var match = result.match(/\/\/ \@(\S+)\s+([^\n]+)/); 
context:   function handleLoad() {    GM_log("> ScriptDownloader.handleLoad");    closeDownloadManager();    // validate that we downloaded ok    if (!targetFile.exists() || targetFile.fileSize == 0) {      alert("The file does not exist or was removed.");      GM_log("* downloaded file not found, exiting");      return;    }    // initialize a new script object    var script = new Script();    script.filename = targetFile.leafName;    script.enabled = true;    script.includes = [];    script.excludes = [];    // crack open the file so we can look for metadata in the comments    var fileStream = getLineStream(targetFile);    // read one line at a time looking for start meta delimiter or EOF    var lineStream = fileStream.QueryInterface(Components.interfaces.nsILineInputStream);    var result = {};    var foundMeta = false;    while (lineStream.readLine(result)) {      if (result.value.indexOf("// ==UserScript==") == 0) {        GM_log("* found metadata");        foundMeta = true;        break;      }    }    // gather up meta lines    if (foundMeta) {      while (lineStream.readLine(result)) {        if (result.value.indexOf("// ==/UserScript==") == 0) {          break;        }        var match = result.value.match(/\/\/ \@(\S+)\s+([^\n]+)/);        if (match != null) {          switch (match[1]) {            case "name":            case "namespace":            case "description":              script[match[1]] = match[2];              break;            case "include":            case "exclude":              script[match[1]+"s"].push(match[2]);              break;          }        }      }    }    fileStream.close();    // if no meta info, default to reasonable values    if (script.name == null) {      script.name = parseScriptName(sourceUri);    }    if (script.namespace == null) {      script.namespace = sourceUri.host;    }    if (script.includes.length == 0) {      script.includes.push("*");    }    // open install dialog    var result = {};    GM_log("* opening install dialog");    window.openDialog("chrome://greasemonkey/content/install.xul",       "manager", "resizable,centerscreen,modal", script, targetFile, result);    if (result.value) {      alert("Success! Refresh page to see changes.");    }    GM_log("< ScriptDownloader.handleLoad");  }
meta: 9744	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9744/19f3148325aee62fc8ed969890b86473177554ae/scriptdownloader.js/clean/src/content/scriptdownloader.js