diff options
author | teramako | 2009-11-23 11:25:36 +0000 |
---|---|---|
committer | teramako | 2009-11-23 11:25:36 +0000 |
commit | 7fe4fca390659b8f0f490e88856a7b7cf56e2525 (patch) | |
tree | 3d534d1666293647a16aec66a195d6551e795b52 /zip-de-download.js | |
parent | c532dbebf0eb99679374c0345cf318bc9ed31fef (diff) | |
download | vimperator-plugins-7fe4fca390659b8f0f490e88856a7b7cf56e2525.tar.bz2 |
fix:bug
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35974 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'zip-de-download.js')
-rw-r--r-- | zip-de-download.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zip-de-download.js b/zip-de-download.js index 3798388..a4a1cb3 100644 --- a/zip-de-download.js +++ b/zip-de-download.js @@ -155,9 +155,9 @@ __proto__ = (function(){ downloadZip: function(path, urls, comment, isAppend){ let zipW = new zipWriter(); let urls = [url for each(url in urls)]; - liberator.assert(urls.length < 1, "None of URLs"); + liberator.assert(urls.length > 0, "None of URLs"); - if ((/\.zip$/i).test(path)){ + if (!(/\.zip$/i).test(path)){ path += ".zip"; } let zipFile = getFile(path); |