Skip to content
Permalink
Browse files

fixed bbcode bracket replace

  • Loading branch information...
JC3 committed Jun 1, 2017
1 parent 023f6d2 commit 9f61fee9e4d036e261d70dd84b276ee7d8009b2c
Showing with 1 addition and 1 deletion.
  1. +1 −1 MoreShareLinks.user.js
@@ -38,7 +38,7 @@
let share_html = `<a href="${url}">${title_html}</a>`;
// BBCode doesn't support escaping square brackets, unfortunately. I could
// be more conservative about replacements but, whatever.
let title_bb = questionTitle.replace('(', '').replace(']', ')');
let title_bb = questionTitle.replace('[', '(').replace(']', ')');
let share_bb = `[url=${url}]${title_bb}[/url]`;

$(document.createTextNode('Markdown (includes your user id):'))

0 comments on commit 9f61fee

Please sign in to comment.
You can’t perform that action at this time.