From 5eff63fb44156276a73abecc87cbb0c061c31c7f Mon Sep 17 00:00:00 2001 From: Ethan Jewett Date: Mon, 19 Nov 2012 18:25:02 -0600 Subject: [PATCH] Replace the RegExp for finding entities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous RegExp (\^\S+) captured closing parentheses. --- WebKit/scripts/helper/Core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js index d55bbe3..c405f66 100644 --- a/WebKit/scripts/helper/Core.js +++ b/WebKit/scripts/helper/Core.js @@ -294,7 +294,7 @@ function(jQuery, Paths, URI, HostApp, Followings) { var text = node.innerHTML; var mentions_in_text = []; - var res = text.match(/(\^\S+)/ig); + var res = text.match(/(\^[\w:/.]+)/ig); if (res) { for (var i = 0; i < res.length; i++) {