aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--direct_hb.js4
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 = [];