From 863c4ce44a31c3aceb51f7f4002d86400d49a141 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 23 Nov 2011 01:37:54 +0900 Subject: コメントに " や - を使えるようにした --- direct_bookmark.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct_bookmark.js b/direct_bookmark.js index 9b4c35d..895ff13 100644 --- a/direct_bookmark.js +++ b/direct_bookmark.js @@ -645,11 +645,10 @@ for Migemo search: require XUL/Migemo Extension }, {}, true); liberator.modules.commands.addUserCommand(['sbm'],"Post to Social Bookmark", function(arg){ - var comment = ""; var targetServices = useServicesByPost; if (arg["-s"]) targetServices = arg["-s"]; - if (arg.length > 0) comment = arg.join(" "); + comment = arg.literalArg; var tags = []; var re = /\[([^\]]+)\]([^\[].*)?/g; @@ -692,6 +691,7 @@ for Migemo search: require XUL/Migemo Extension d.error(function(e){liberator.echoerr("direct_bookmark.js: Exception throwed! " + e);liberator.log(e);}); setTimeout(function(){first.call();},0); },{ + literal: 0, completer: function(context, arg){ let filter = context.filter; var match_result = filter.match(/((?:\[[^\]]*\])*)\[?(.*)/); //[all, commited, now inputting] -- cgit v1.2.3