From c995701f872613d69f86af989dd94b0d7e949746 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 24 May 2015 19:17:15 +0200 Subject: handle uppercase file extension names --- bin/cmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/cmd.js b/bin/cmd.js index b05830b..4c9b343 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -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. -- cgit v1.2.3