Don't add a colon to tweet if it ends on a question mark.
parent
36cbc77190
commit
ba597133c5
|
@ -54,7 +54,7 @@
|
||||||
popupHeight: 450,
|
popupHeight: 450,
|
||||||
click: function() {
|
click: function() {
|
||||||
// Add colon to improve readability
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue