mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
BUGFIX: A MDTest was conflicting with BBCode support for upper case
This commit is contained in:
parent
158487dfc2
commit
02ea67eece
3 changed files with 3 additions and 5 deletions
test/javascripts/mdtest
|
@ -1,4 +1,4 @@
|
|||
Just a [URL](/url/).
|
||||
Just a [LINK](/url/).
|
||||
|
||||
[URL and title](/url/ "title").
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<p>Just a <a href="/url/">URL</a>.</p>
|
||||
<p>Just a <a href="/url/">LINK</a>.</p>
|
||||
|
||||
<p><a href="/url/" title="title">URL and title</a>.</p>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ module("MDTest", {
|
|||
});
|
||||
|
||||
// This is cheating, but the trivial differences between sanitization
|
||||
// do not affect formatting.
|
||||
// do not affect formatting.
|
||||
function normalize(str) {
|
||||
return str.replace(/\n\s*/g, '').
|
||||
replace(/ \/\>/g, '/>').
|
||||
|
@ -33,7 +33,6 @@ test("first", function(){
|
|||
});
|
||||
|
||||
<%
|
||||
|
||||
def mdtest_suite
|
||||
result = ""
|
||||
Dir.glob("#{Rails.root}/test/javascripts/mdtest/fixtures/*.text").each do |f|
|
||||
|
@ -47,7 +46,6 @@ test("first", function(){
|
|||
end
|
||||
result
|
||||
end
|
||||
|
||||
%>
|
||||
|
||||
<%= mdtest_suite %>
|
||||
|
|
Loading…
Add table
Reference in a new issue