From 066a1eab799307742e1cb1b09e94a3609c80c907 Mon Sep 17 00:00:00 2001 From: drry Date: Tue, 18 Nov 2008 12:35:35 +0000 Subject: * fixed a regex. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24158 d0d07461-0603-4401-acd4-de1884942a52 --- fetchyoutube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fetchyoutube.js') diff --git a/fetchyoutube.js b/fetchyoutube.js index c99b071..a2824ab 100644 --- a/fetchyoutube.js +++ b/fetchyoutube.js @@ -37,7 +37,7 @@ function fetch (arg) { let doc = content.document; - if (!doc.location.href.match(/http:\/\/(?:[^.]+\.)?youtube\.com\/watch/)) + if (!doc.location.href.match(/^http:\/\/(?:[^.]+\.)?youtube\.com\/watch/)) return; let filepath = arg.string; let dir = options.getPref('browser.download.dir'); -- cgit v1.2.3