rem: if (tags[1].length < 2 || tags[1].length > 3) return false; 
add: if (tags[1].length < 2 || tags[1].length > 8) return false; 
context: function IsRFC1766LangTag(candidate) {  /* reject bogus lang strings, INCLUDING those with HTTP "q"     values kludged on the end of them     Valid language codes examples:     i.e. ja-JP-kansai (Kansai dialect of Japanese)          en-US-texas (Texas dialect)          i-klingon-tng (did TOS Klingons speak in non-English?)          sgn-US-MA (Martha Vineyard's Sign Language)  */  var tags = candidate.split('-');  /* if not IANA "i" or a private "x" extension, the primary     tag should be a ISO 639 country code, two or three letters long.     we don't check if the country code is bogus or not.  */  var checkedTags = 0;  if (tags[0].toLowerCase() != "x" && tags[0].toLowerCase() != "i") {    if (tags[0].length != 2 && tags[0].length != 3) return false;    if (!isAlpha(tags[0])) return false;    checkedTags++;    /* the first subtag can be either a 2 letter ISO 3166 country code,       or an IANA registered tag from 3 to 8 characters.    */    if (tags.length > 1) {      if (tags[1].length < 2 || tags[1].length > 3) return false;      if (!isAlphaNum(tags[1])) return false;      /* do not allow user-assigned ISO 3166 country codes */      if (tags[1].length == 2 && isAlpha(tags[1])) {        var countryCode = tags[1].toUpperCase();        if (countryCode == "AA" || countryCode == "ZZ") return false;        if (countryCode[0] == 'X') return false;        if (countryCode[0] == 'Q' && countryCode[1] > 'L') return false;      }      checkedTags++;    }  }  else if (tags.length < 2) return false;  else {    if ((tags[1].length < 1) || (tags[1].length > 8)) return false;    if (!isAlphaNum(tags[1])) return false;    checkedTags++;  }  /* any remaining subtags must be one to eight alphabetic characters */  for (var i = checkedTags; i < tags.length; i++) {    if ((tags[1].length < 1) || (tags[i].length > 8)) return false;    if (!isAlphaNum(tags[i])) return false;    checkedTags++;  }  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/45a0ed1fed37946d27f4ab23d65c7d869d79cc54/pref-languages.js/clean/xpfe/components/prefwindow/resources/content/pref-languages.js