Less agressive Redcloth lang attribute parsing (#2091).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2020 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2008-11-11 16:26:05 +00:00
1 parent 7a05f8ed66
commit 737bbb3d3d
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -341,7 +341,7 @@ class RedCloth3 < String
A_HLGN = /(?:(?:<>|<|>|\=|[()]+)+)/ A_HLGN = /(?:(?:<>|<|>|\=|[()]+)+)/
A_VLGN = /[\-^~]/ A_VLGN = /[\-^~]/
C_CLAS = '(?:\([^)]+\))' C_CLAS = '(?:\([^)]+\))'
C_LNGE = '(?:\[[^\]]+\])' C_LNGE = '(?:\[[^\[\]]+\])'
C_STYL = '(?:\{[^}]+\})' C_STYL = '(?:\{[^}]+\})'
S_CSPN = '(?:\\\\\d+)' S_CSPN = '(?:\\\\\d+)'
S_RSPN = '(?:/\d+)' S_RSPN = '(?:/\d+)'
@@ -177,6 +177,7 @@ class ApplicationHelperTest < HelperTestCase
'[[onlinestore:Unknown page]]' => '<a href="/wiki/onlinestore/Unknown_page" class="wiki-page new">Unknown page</a>', '[[onlinestore:Unknown page]]' => '<a href="/wiki/onlinestore/Unknown_page" class="wiki-page new">Unknown page</a>',
# striked through link # striked through link
'-[[Another page|Page]]-' => '<del><a href="/wiki/ecookbook/Another_page" class="wiki-page">Page</a></del>', '-[[Another page|Page]]-' => '<del><a href="/wiki/ecookbook/Another_page" class="wiki-page">Page</a></del>',
'-[[Another page|Page]] link-' => '<del><a href="/wiki/ecookbook/Another_page" class="wiki-page">Page</a> link</del>',
# escaping # escaping
'![[Another page|Page]]' => '[[Another page|Page]]', '![[Another page|Page]]' => '[[Another page|Page]]',
} }