diff options
author | trapezoid | 2008-04-09 16:29:57 +0000 |
---|---|---|
committer | trapezoid | 2008-04-09 16:29:57 +0000 |
commit | f9fab6e28c24b183df667f53ae6495c74a0a12f6 (patch) | |
tree | 15fbca6c9332db8e8c9f19ff27a0cfecc3293b3a | |
parent | b417ebd7b50d214db755dc89bd10285d1d0779ef (diff) | |
download | vimperator-plugins-f9fab6e28c24b183df667f53ae6495c74a0a12f6.tar.bz2 |
lang/javascript/vimperator-plugins/trunk/direct_hb.js: fix regexp
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9226 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | direct_hb.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/direct_hb.js b/direct_hb.js index a3ef5ee..098004f 100644 --- a/direct_hb.js +++ b/direct_hb.js @@ -1,5 +1,5 @@ // Vimperator plugin: 'Direct Hatena Bookmark'
-// Last Change: 02-Apr-2008. Jan 2008
+// Last Change: 10-Apr-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
// Parts:
@@ -206,7 +206,7 @@ },{
completer: function(filter){
//var match_result = filter.match(/(.*)\[(\w*)$/); //[all, commited, now inputting]
- var match_result = filter.match(/(\[[^\]]*\])?\[?(.*)/); //[all, commited, now inputting]
+ var match_result = filter.match(/((?:\[[^\]]*\])*)?\[?(.*)/); //[all, commited, now inputting]
//var m = new RegExp("^" + match_result[2]);
var m = new RegExp(XMigemoCore ? "^(" + XMigemoCore.getRegExp(match_result[2]) + ")" : "^" + match_result[2],'i');
var completionList = [];
|