diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-06-13 14:27:12 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-06-13 14:27:12 +0200 |
commit | eb11c80b2309cc84a7a33fb1b8fb45ca581dabdf (patch) | |
tree | 7cf711f23b93e526903f1e6c41424e8c9403ea18 /tests/text_processing | |
parent | a49bd38e833fbc42fdafd000872a810e6c6c37e4 (diff) | |
download | forums-eb11c80b2309cc84a7a33fb1b8fb45ca581dabdf.tar forums-eb11c80b2309cc84a7a33fb1b8fb45ca581dabdf.tar.gz forums-eb11c80b2309cc84a7a33fb1b8fb45ca581dabdf.tar.bz2 forums-eb11c80b2309cc84a7a33fb1b8fb45ca581dabdf.tar.xz forums-eb11c80b2309cc84a7a33fb1b8fb45ca581dabdf.zip |
[ticket/13921] Fix block BBCodes inside of inline BBCodes
PHPBB3-13921
Diffstat (limited to 'tests/text_processing')
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-13921.html | 1 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-13921.txt | 1 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-13921.xml | 28 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/text_processing/tickets_data/PHPBB3-13921.html b/tests/text_processing/tickets_data/PHPBB3-13921.html new file mode 100644 index 0000000000..6a9dc7f504 --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-13921.html @@ -0,0 +1 @@ +<span style="font-size: 200%; line-height: normal"></span><div style="text-align:center"><span style="font-size: 200%; line-height: normal">xxx</span></div>
\ No newline at end of file diff --git a/tests/text_processing/tickets_data/PHPBB3-13921.txt b/tests/text_processing/tickets_data/PHPBB3-13921.txt new file mode 100644 index 0000000000..392da0c3c8 --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-13921.txt @@ -0,0 +1 @@ +[size=200][center]xxx[/center][/size]
\ No newline at end of file diff --git a/tests/text_processing/tickets_data/PHPBB3-13921.xml b/tests/text_processing/tickets_data/PHPBB3-13921.xml new file mode 100644 index 0000000000..8d39246bb4 --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-13921.xml @@ -0,0 +1,28 @@ +<?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>center</value> + <value></value> + <value>1</value> + <value>[center]{TEXT}[/center]</value> + <value><![CDATA[<div style="text-align:center">{TEXT}</div>]]></value> + <value>!\[center\](.*?)\[/center\]!ies</value> + <value>'[center:$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${1}')).'[/center:$uid]'</value> + <value>!\[center:$uid\](.*?)\[/center:$uid\]!s</value> + <value><![CDATA[<div style="text-align:center">${1}</div>]]></value> + </row> + </table> +</dataset> |