aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrry2008-11-18 12:35:35 +0000
committerdrry2008-11-18 12:35:35 +0000
commit066a1eab799307742e1cb1b09e94a3609c80c907 (patch)
treedf203701aeb2cb54e41e209ccd1a181412187332
parent91483bd9350b2f9b8025432d7963ae68fdc8a5f3 (diff)
downloadvimperator-plugins-066a1eab799307742e1cb1b09e94a3609c80c907.tar.bz2
* fixed a regex.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24158 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--fetchyoutube.js2
1 files changed, 1 insertions, 1 deletions
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');