client/misc: fix invalid markup for SJIS

This commit is contained in:
rr- 2016-06-11 17:59:25 +02:00
parent c2606a2555
commit 9e13c05517

View file

@ -123,7 +123,7 @@ function formatMarkdown(text) {
text = text.replace(/%%%#/g, '#');
text = text.replace(
/%%%SJIS(\d+)/,
/(?:<p>)?%%%SJIS(\d+)(?:<\/p>)?/,
(match, capture) => {
return '<div class="sjis">' + sjis[capture] + '</div>';
});