diff options
author | Nicofuma <github@nicofuma.fr> | 2015-05-20 00:21:59 +0200 |
---|---|---|
committer | Nicofuma <github@nicofuma.fr> | 2015-05-20 00:21:59 +0200 |
commit | fda5a83b6daa66d7080c8de04cfedc15279a1204 (patch) | |
tree | e78fc88a6b5b378a3916698d36488e1f7dd33a58 /tests/text_processing/tickets_data | |
parent | b5b7f455b1ccc7e4c0853f5cc6952ddbab94328f (diff) | |
parent | c56726e9da0cb483f8e0c88aacc4c3b3e84ee8e4 (diff) | |
download | forums-fda5a83b6daa66d7080c8de04cfedc15279a1204.tar forums-fda5a83b6daa66d7080c8de04cfedc15279a1204.tar.gz forums-fda5a83b6daa66d7080c8de04cfedc15279a1204.tar.bz2 forums-fda5a83b6daa66d7080c8de04cfedc15279a1204.tar.xz forums-fda5a83b6daa66d7080c8de04cfedc15279a1204.zip |
Merge pull request #3569 from s9e/ticket/13641
[ticket/13641] Proper parsing of custom BBCode for inline code
Diffstat (limited to 'tests/text_processing/tickets_data')
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-13641.html | 1 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-13641.txt | 1 | ||||
-rw-r--r-- | tests/text_processing/tickets_data/PHPBB3-13641.xml | 28 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/text_processing/tickets_data/PHPBB3-13641.html b/tests/text_processing/tickets_data/PHPBB3-13641.html new file mode 100644 index 0000000000..1bd1c06dbb --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-13641.html @@ -0,0 +1 @@ +<code>[color=#FF0000]</code> - <span style="color: #FF0000">red</span>
\ No newline at end of file diff --git a/tests/text_processing/tickets_data/PHPBB3-13641.txt b/tests/text_processing/tickets_data/PHPBB3-13641.txt new file mode 100644 index 0000000000..58f324715e --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-13641.txt @@ -0,0 +1 @@ +[c][color=#FF0000][/c] - [color=#FF0000]red[/color]
\ No newline at end of file diff --git a/tests/text_processing/tickets_data/PHPBB3-13641.xml b/tests/text_processing/tickets_data/PHPBB3-13641.xml new file mode 100644 index 0000000000..451c5c69cd --- /dev/null +++ b/tests/text_processing/tickets_data/PHPBB3-13641.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>c</value> + <value></value> + <value>1</value> + <value>[c]{TEXT}[/c]</value> + <value><![CDATA[<code>{TEXT}</code>]]></value> + <value><![CDATA[!\[c\](.*?)\[/c\]!ies]]></value> + <value><![CDATA['[c:$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${1}')).'[/c:$uid]']]></value> + <value><![CDATA[!\[c:$uid\](.*?)\[/c:$uid\]!s]]></value> + <value><![CDATA[<code>${1}</code>]]></value> + </row> + </table> +</dataset> |