diff options
author | trapezoid | 2008-03-28 14:59:07 +0000 |
---|---|---|
committer | trapezoid | 2008-03-28 14:59:07 +0000 |
commit | f33f75fffb911cb5788593a786cb48647ac47052 (patch) | |
tree | a027eb8e709870ad21d6b34a033b304c6efd50ee /direct_hb.js | |
parent | c1528da1db52f43a36bcd516b6b0884e4586d4a8 (diff) | |
download | vimperator-plugins-f33f75fffb911cb5788593a786cb48647ac47052.tar.bz2 |
lang/javascript/vimperator-plugins/direct_hb.js: fix regexp
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8474 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'direct_hb.js')
-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 7eb205f..39fe3bb 100644 --- a/direct_hb.js +++ b/direct_hb.js @@ -1,5 +1,5 @@ // Vimperator plugin: 'Direct Hatena Bookmark'
-// Last Change: 26-Mar-2008. Jan 2008
+// Last Change: 28-Mar-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
// Parts:
@@ -214,7 +214,7 @@ //var match_result = filter.match(/(.*)\[(\w*)$/); //[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]);
+ var m = new RegExp(XMigemoCore ? "^(" + XMigemoCore.getRegExp(match_result[2]) + ")" : "^" + match_result[2]);
var completionList = [];
for(var i in liberator.plugins.hatena_tags)
if(m.test(liberator.plugins.hatena_tags[i])){
|