diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2016-08-10 03:19:38 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2016-08-10 03:19:38 +0200 |
commit | 260a0a29add1d318c27e998cfa3602333c74adcb (patch) | |
tree | 5b30a28a1ba050fc8d3d258d7260da650577f114 /tests/text_processing/tickets_data | |
parent | 55f98d0941e17b473015baf07026efabaf676916 (diff) | |
download | forums-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.html | 2 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-14740.txt | 2 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-14740.xml | 40 |
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="{TEXT1}"]{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\="(.*?)"\](.*?)\[/mod\]!ies</value> + <value>'[mod="'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${1}')).'":$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${2}')).'[/mod:$uid]'</value> + <value>!\[mod\="(.*?)":$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> |