From ba597133c5a6bbcc717d6338e1b44ec27f378be8 Mon Sep 17 00:00:00 2001 From: Richard Westenra Date: Mon, 16 Feb 2015 16:52:25 +0000 Subject: [PATCH] Don't add a colon to tweet if it ends on a question mark. --- src/social-likes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/social-likes.js b/src/social-likes.js index 47c4e33..7b57acc 100644 --- a/src/social-likes.js +++ b/src/social-likes.js @@ -54,7 +54,7 @@ popupHeight: 450, click: function() { // Add colon to improve readability - if (!/[\.:\-–—]\s*$/.test(this.options.title)) this.options.title += ':'; + if (!/[\.\?:\-–—]\s*$/.test(this.options.title)) this.options.title += ':'; return true; } },