diff options
author | drry | 2008-11-18 12:35:35 +0000 |
---|---|---|
committer | drry | 2008-11-18 12:35:35 +0000 |
commit | 066a1eab799307742e1cb1b09e94a3609c80c907 (patch) | |
tree | df203701aeb2cb54e41e209ccd1a181412187332 /fetchyoutube.js | |
parent | 91483bd9350b2f9b8025432d7963ae68fdc8a5f3 (diff) | |
download | vimperator-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
Diffstat (limited to 'fetchyoutube.js')
-rw-r--r-- | fetchyoutube.js | 2 |
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'); |