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 /haiku.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 'haiku.js')
-rw-r--r-- | haiku.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -177,7 +177,7 @@ '<div><object width="300" height="250" data="' + url + '" type="application/x-shockwave-flash">'+
'<param name="wmode" value="transparent"/><param name="allowFullScreen" value="true"/>'+
'</object></div>';
- } else if (/^http:\/\/www\.nicovideo\.jp\/watch\/([-\w]+)$/.test(all)){
+ } else if (/^http:\/\/[^.]+\.nicovideo\.jp\/watch\/([-\w]+)$/.test(all)){
str = '<iframe width="312" height="176" src="http://ext.nicovideo.jp/thumb/'+RegExp.$1 + '" scrolling="no">'+
'<a href="' + all + '">' +all+'</a></iframe>';
} else if (all.charAt(0) == "["){
|