From f9fab6e28c24b183df667f53ae6495c74a0a12f6 Mon Sep 17 00:00:00 2001 From: trapezoid Date: Wed, 9 Apr 2008 16:29:57 +0000 Subject: 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 --- direct_hb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'direct_hb.js') 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 - 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 = []; -- cgit v1.2.3