##// END OF EJS Templates
Fixed: URL with ~ broken in wiki formatting....
Jean-Philippe Lang -
r785:586231067bb1
parent child
Show More
@@ -359,16 +359,16 class RedCloth < String
359 ]
359 ]
360
360
361 QTAGS = [
361 QTAGS = [
362 ['**', 'b'],
362 ['**', 'b', :limit],
363 ['*', 'strong'],
363 ['*', 'strong', :limit],
364 ['??', 'cite', :limit],
364 ['??', 'cite', :limit],
365 ['-', 'del', :limit],
365 ['-', 'del', :limit],
366 ['__', 'i'],
366 ['__', 'i', :limit],
367 ['_', 'em', :limit],
367 ['_', 'em', :limit],
368 ['%', 'span', :limit],
368 ['%', 'span', :limit],
369 ['+', 'ins', :limit],
369 ['+', 'ins', :limit],
370 ['^', 'sup'],
370 ['^', 'sup', :limit],
371 ['~', 'sub']
371 ['~', 'sub', :limit]
372 ]
372 ]
373 QTAGS.collect! do |rc, ht, rtype|
373 QTAGS.collect! do |rc, ht, rtype|
374 rcq = Regexp::quote rc
374 rcq = Regexp::quote rc
@@ -29,6 +29,7 class ApplicationHelperTest < HelperTestCase
29 def test_auto_links
29 def test_auto_links
30 to_test = {
30 to_test = {
31 'http://foo.bar' => '<a class="external" href="http://foo.bar">http://foo.bar</a>',
31 'http://foo.bar' => '<a class="external" href="http://foo.bar">http://foo.bar</a>',
32 'http://foo.bar/~user' => '<a class="external" href="http://foo.bar/~user">http://foo.bar/~user</a>',
32 'http://foo.bar.' => '<a class="external" href="http://foo.bar">http://foo.bar</a>.',
33 'http://foo.bar.' => '<a class="external" href="http://foo.bar">http://foo.bar</a>.',
33 'http://foo.bar/foo.bar#foo.bar.' => '<a class="external" href="http://foo.bar/foo.bar#foo.bar">http://foo.bar/foo.bar#foo.bar</a>.',
34 'http://foo.bar/foo.bar#foo.bar.' => '<a class="external" href="http://foo.bar/foo.bar#foo.bar">http://foo.bar/foo.bar#foo.bar</a>.',
34 'www.foo.bar' => '<a class="external" href="http://www.foo.bar">www.foo.bar</a>',
35 'www.foo.bar' => '<a class="external" href="http://www.foo.bar">www.foo.bar</a>',
General Comments 0
You need to be logged in to leave comments. Login now