Fix translatorID in filename in ZIP build, hopefully

Follow-up from d821778

Refs #459, Non-ascii translator names
This commit is contained in:
Dan Stillman 2012-09-19 03:37:44 -04:00
parent d821778d24
commit 020eaf2d47

View File

@ -696,7 +696,7 @@ Zotero.Schema = new function(){
Zotero.File.getValidFileName(entry.label)) + fileExt;
// Use translatorID if name still isn't ASCII (e.g., Cyrillic)
if (!fileName.match(/^[\x00-\x7f]+$/)) {
fileName = entry.translatorID + fileExt;
fileName = translatorID + fileExt;
}
var destFile = destDir.clone();