diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-05-24 20:17:15 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-05-24 20:17:15 +0300 |
commit | c995701f872613d69f86af989dd94b0d7e949746 (patch) | |
tree | 2871686b132c4bec0e21cfdc295ff987f2256e69 /bin | |
parent | 8fb93572b170e25b3fe0058260edc1541acc6796 (diff) |
handle uppercase file extension names
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -429,7 +429,7 @@ function runDownload (torrentId) { } function runSeed (input) { - if (path.extname(input) === '.torrent' || /^magnet:/.test(input)) { + if (path.extname(input).toLowerCase() === '.torrent' || /^magnet:/.test(input)) { // `webtorrent seed` is meant for creating a new torrent based on a file or folder // of content, not a torrent id (.torrent or a magnet uri). If this command is used // incorrectly, let's just do the right thing. |