aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_processing/tickets_data
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2016-08-10 03:19:38 +0200
committerJoshyPHP <s9e.dev@gmail.com>2016-08-10 03:19:38 +0200
commit260a0a29add1d318c27e998cfa3602333c74adcb (patch)
tree5b30a28a1ba050fc8d3d258d7260da650577f114 /tests/text_processing/tickets_data
parent55f98d0941e17b473015baf07026efabaf676916 (diff)
downloadforums-260a0a29add1d318c27e998cfa3602333c74adcb.tar
forums-260a0a29add1d318c27e998cfa3602333c74adcb.tar.gz
forums-260a0a29add1d318c27e998cfa3602333c74adcb.tar.bz2
forums-260a0a29add1d318c27e998cfa3602333c74adcb.tar.xz
forums-260a0a29add1d318c27e998cfa3602333c74adcb.zip
[ticket/14740] Added support for quoted attributes in BBCode definitions
PHPBB3-14740
Diffstat (limited to 'tests/text_processing/tickets_data')
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14740.html2
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14740.txt2
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-14740.xml40
3 files changed, 44 insertions, 0 deletions
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 @@
+<div id="modremark"><div id="modremarkexclamation">!</div><div><div id="moderemarktitle">Moderatoropmerking from: neufke</div><div id="moderemarktext">Mod Remark</div></div></div>
+<div id="modremark"><div id="modremarkexclamation">!</div><div><div id="moderemarktitle">Moderatoropmerking from: neufke</div><div id="moderemarktext">Mod Remark</div></div></div> \ 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 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<dataset>
+ <table name="phpbb_bbcodes">
+ <column>bbcode_id</column>
+ <column>bbcode_tag</column>
+ <column>bbcode_helpline</column>
+ <column>display_on_posting</column>
+ <column>bbcode_match</column>
+ <column>bbcode_tpl</column>
+ <column>first_pass_match</column>
+ <column>first_pass_replace</column>
+ <column>second_pass_match</column>
+ <column>second_pass_replace</column>
+
+ <row>
+ <value>13</value>
+ <value>mod=</value>
+ <value></value>
+ <value>1</value>
+ <value>[mod=&quot;{TEXT1}&quot;]{TEXT2}[/mod]</value>
+ <value><![CDATA[<div id="modremark">
+ <div id="modremarkexclamation">!</div>
+ <div>
+ <div id="moderemarktitle">Moderatoropmerking {L_FROM}{L_COLON} {TEXT1}</div>
+ <div id="moderemarktext">{TEXT2}</div>
+ </div>
+</div>]]></value>
+ <value>!\[mod\=&quot;(.*?)&quot;\](.*?)\[/mod\]!ies</value>
+ <value>'[mod=&quot;'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', '&#39;', '&#40;', '&#41;'), trim('${1}')).'&quot;:$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', '&#39;', '&#40;', '&#41;'), trim('${2}')).'[/mod:$uid]'</value>
+ <value>!\[mod\=&quot;(.*?)&quot;:$uid\](.*?)\[/mod:$uid\]!s</value>
+ <value><![CDATA[<div id="modremark">
+ <div id="modremarkexclamation">!</div>
+ <div>
+ <div id="moderemarktitle">Moderatoropmerking {L_FROM}{L_COLON} ${1}</div>
+ <div id="moderemarktext">${2}</div>
+ </div>
+</div>]]></value>
+ </row>
+ </table>
+</dataset>