diff --git a/phpBB/composer.lock b/phpBB/composer.lock index 8280b809f6..1dfd7b5b5c 100644 --- a/phpBB/composer.lock +++ b/phpBB/composer.lock @@ -641,16 +641,16 @@ }, { "name": "s9e/text-formatter", - "version": "0.6.1", + "version": "0.6.2", "source": { "type": "git", "url": "https://github.com/s9e/TextFormatter.git", - "reference": "dd0ec47d1ffb5ed5a3eb4e3adbc33db6e0057420" + "reference": "99d6b5799387dddfdd00b5a76bb83a15dda586e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/s9e/TextFormatter/zipball/dd0ec47d1ffb5ed5a3eb4e3adbc33db6e0057420", - "reference": "dd0ec47d1ffb5ed5a3eb4e3adbc33db6e0057420", + "url": "https://api.github.com/repos/s9e/TextFormatter/zipball/99d6b5799387dddfdd00b5a76bb83a15dda586e3", + "reference": "99d6b5799387dddfdd00b5a76bb83a15dda586e3", "shasum": "" }, "require": { @@ -697,7 +697,7 @@ "parser", "shortcodes" ], - "time": "2016-07-30 01:50:02" + "time": "2016-08-09 14:16:45" }, { "name": "symfony/config", diff --git a/tests/text_processing/tickets_data/PHPBB3-14740.html b/tests/text_processing/tickets_data/PHPBB3-14740.html new file mode 100644 index 0000000000..a1986a0901 --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-14740.html @@ -0,0 +1,2 @@ +
!
Moderatoropmerking from: neufke
Mod Remark
+
!
Moderatoropmerking from: neufke
Mod Remark
\ No newline at end of file diff --git a/tests/text_processing/tickets_data/PHPBB3-14740.txt b/tests/text_processing/tickets_data/PHPBB3-14740.txt new file mode 100644 index 0000000000..c5b2e74513 --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-14740.txt @@ -0,0 +1,2 @@ +[mod=neufke]Mod Remark[/mod] +[mod="neufke"]Mod Remark[/mod] \ No newline at end of file diff --git a/tests/text_processing/tickets_data/PHPBB3-14740.xml b/tests/text_processing/tickets_data/PHPBB3-14740.xml new file mode 100644 index 0000000000..9e7dc9760c --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-14740.xml @@ -0,0 +1,40 @@ + + + + bbcode_id + bbcode_tag + bbcode_helpline + display_on_posting + bbcode_match + bbcode_tpl + first_pass_match + first_pass_replace + second_pass_match + second_pass_replace + + + 13 + mod= + + 1 + [mod="{TEXT1}"]{TEXT2}[/mod] + +
!
+
+
Moderatoropmerking {L_FROM}{L_COLON} {TEXT1}
+
{TEXT2}
+
+]]>
+ !\[mod\="(.*?)"\](.*?)\[/mod\]!ies + '[mod="'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${1}')).'":$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${2}')).'[/mod:$uid]' + !\[mod\="(.*?)":$uid\](.*?)\[/mod:$uid\]!s + +
!
+
+
Moderatoropmerking {L_FROM}{L_COLON} ${1}
+
${2}
+
+]]>
+
+
+