diff options
author | drry | 2008-12-16 14:48:43 +0000 |
---|---|---|
committer | drry | 2008-12-16 14:48:43 +0000 |
commit | 7543cfc6863832c79870ea494c81b63aadc78ef3 (patch) | |
tree | 47857f7e50da7d6d82c4ebeadb291d8abd604393 /nico_related_videos.js | |
parent | b80ccfa3c4c9454c91ecc2182a5d90729b33ec53 (diff) | |
download | vimperator-plugins-7543cfc6863832c79870ea494c81b63aadc78ef3.tar.bz2 |
* fixed regexes.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26897 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'nico_related_videos.js')
-rw-r--r-- | nico_related_videos.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nico_related_videos.js b/nico_related_videos.js index ce0cc1a..40700ec 100644 --- a/nico_related_videos.js +++ b/nico_related_videos.js @@ -26,7 +26,7 @@ (function () { function getVideoId () { - let m = buffer.URL.match(/^http:\/\/www\.nicovideo\.jp\/watch\/([a-z0-9]+)/); + let m = buffer.URL.match(/^http:\/\/(?:tw|es|de|www)\.nicovideo\.jp\/watch\/([a-z0-9]+)/); return m && m[1]; } |