diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2016-11-02 09:19:35 +0100 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2016-11-02 09:19:35 +0100 |
commit | 33f1934b727ce71e272447356941de18f999d53f (patch) | |
tree | b39301c53215a839641b987b004e99ab95641b1b /tests/text_processing | |
parent | f658e062b2c38127df34dfe1903f1f28946a9ae7 (diff) | |
download | forums-33f1934b727ce71e272447356941de18f999d53f.tar forums-33f1934b727ce71e272447356941de18f999d53f.tar.gz forums-33f1934b727ce71e272447356941de18f999d53f.tar.bz2 forums-33f1934b727ce71e272447356941de18f999d53f.tar.xz forums-33f1934b727ce71e272447356941de18f999d53f.zip |
[ticket/14846] Updated s9e\TextFormatter
PHPBB3-14846
Diffstat (limited to 'tests/text_processing')
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-14846.html | 1 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-14846.txt | 1 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-14846.xml | 28 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/text_processing/tickets_data/PHPBB3-14846.html b/tests/text_processing/tickets_data/PHPBB3-14846.html new file mode 100644 index 0000000000..461ca25bc6 --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-14846.html @@ -0,0 +1 @@ +<div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">moderator text<div style="font-weight: bold; text-align: right">- Mickroz</div></div>
\ No newline at end of file diff --git a/tests/text_processing/tickets_data/PHPBB3-14846.txt b/tests/text_processing/tickets_data/PHPBB3-14846.txt new file mode 100644 index 0000000000..ded7b3f1fe --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-14846.txt @@ -0,0 +1 @@ +[mod=Mickroz]moderator text[/mod]
\ No newline at end of file diff --git a/tests/text_processing/tickets_data/PHPBB3-14846.xml b/tests/text_processing/tickets_data/PHPBB3-14846.xml new file mode 100644 index 0000000000..94b094f0e3 --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-14846.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>mod=</value> + <value></value> + <value>1</value> + <value>[mod={TEXT1}]{TEXT2}[/mod]</value> + <value><![CDATA[<div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">{TEXT2}<div style="font-weight: bold; text-align: right">- {TEXT1}</div></div>]]></value> + <value><![CDATA[!\[mod\=(.*?)\](.*?)\[/mod\]!ies]]></value> + <value><![CDATA['[mod='.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${1}')).':$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${2}')).'[/mod:$uid]']]></value> + <value><![CDATA[!\[mod\=(.*?):$uid\](.*?)\[/mod:$uid\]!s]]></value> + <value><![CDATA[<div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">${2}<div style="font-weight: bold; text-align: right">- ${1}</div></div>]]></value> + </row> + </table> +</dataset> |