Changeset 9226 for lang/javascript

Show
Ignore:
Timestamp:
04/10/08 01:29:57 (7 years ago)
Author:
trapezoid
Message:

lang/javascript/vimperator-plugins/trunk/direct_hb.js: fix regexp

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/direct_hb.js

    r9170 r9226  
    11// Vimperator plugin: 'Direct Hatena Bookmark' 
    2 // Last Change: 02-Apr-2008. Jan 2008 
     2// Last Change: 10-Apr-2008. Jan 2008 
    33// License: Creative Commons 
    44// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid 
     
    207207            completer: function(filter){ 
    208208                //var match_result = filter.match(/(.*)\[(\w*)$/); //[all, commited, now inputting] 
    209                 var match_result = filter.match(/(\[[^\]]*\])?\[?(.*)/); //[all, commited, now inputting] 
     209                var match_result = filter.match(/((?:\[[^\]]*\])*)?\[?(.*)/); //[all, commited, now inputting] 
    210210                //var m = new RegExp("^" + match_result[2]); 
    211211                var m = new RegExp(XMigemoCore ? "^(" + XMigemoCore.getRegExp(match_result[2]) + ")" : "^" + match_result[2],'i');