From 260a0a29add1d318c27e998cfa3602333c74adcb Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Wed, 10 Aug 2016 03:19:38 +0200 Subject: [ticket/14740] Added support for quoted attributes in BBCode definitions PHPBB3-14740 --- .../text_processing/tickets_data/PHPBB3-14740.html | 2 ++ .../text_processing/tickets_data/PHPBB3-14740.txt | 2 ++ .../text_processing/tickets_data/PHPBB3-14740.xml | 40 ++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 tests/text_processing/tickets_data/PHPBB3-14740.html create mode 100644 tests/text_processing/tickets_data/PHPBB3-14740.txt create mode 100644 tests/text_processing/tickets_data/PHPBB3-14740.xml (limited to 'tests') 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}
+
+]]>
+
+
+
-- cgit v1.2.1