Skip to content

Commit 10c12ac

Browse files
authored
Merge pull request #87 from FSD-Christian-ISS/fix-code-and-quote-element
Fixed display of quotes when quotee's name contains unicode characters
2 parents 8997183 + 4b59761 commit 10c12ac

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

BBCodePlus/BBCodePlus.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function register() {
2222
$this->name = plugin_lang_get( 'title' );
2323
$this->description = plugin_lang_get( 'description' );
2424
$this->page = 'config';
25-
$this->version = '2.1.11';
25+
$this->version = '2.1.12';
2626

2727
$this->requires['MantisCore'] = '2.0.0';
2828
# this plugin can coexist with MantisCoreFormatting.
@@ -278,7 +278,7 @@ function add_tags() {
278278
$this->t_bbCode->addParser('code-lang-ln', '/\[code=(\w*)\ start=([0-9]+)\](.*?)\[\/code\]/s',
279279
'<pre class="bbcodeplus pre line-numbers" data-start="$2"><code class="bbcodeplus code language-$1">$3</code></pre>', '$3');
280280
$this->t_bbCode->addParser('quote', '/\[quote\](.*?)\[\/quote\]/s', '<blockquote class="bbcodeplus blockquote">$1</blockquote>', '$1');
281-
$this->t_bbCode->addParser('named-quote', '/\[quote=([\s\w]*)\](.*?)\[\/quote\]/s',
281+
$this->t_bbCode->addParser('named-quote', '/\[quote=([\s\w,\']*)\](.*?)\[\/quote\]/su',
282282
'<blockquote class="bbcodeplus blockquote"><p class="mb-0">$2</p><footer class="bbcodeblus blockquote-footer"><cite title="$1">$1</cite></footer></blockquote>',
283283
'$1 wrote: $2');
284284
}

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ If you would like to contribute to BBCode plus, please [read this guide first](h
2626

2727
## Change Log
2828

29+
### 2.1.12
30+
31+
- Fixed display of quotes when quotee's name contains unicode characters, commas or single quotes [@FSD-Christian-ISS](https://github.com/FSD-Christian-ISS)
32+
2933
### 2.1.11
3034

3135
- Fixed issue with additional protocols in link insertion.

0 commit comments

Comments
 (0)