Test strip and add space still works when extra_params is a callable
This commit is contained in:
parent
4fd35b8c34
commit
783d76cbfc
|
@ -125,6 +125,10 @@ linkify_tests = [
|
|||
("www.external-link.com and www.internal-link.com/blogs extra",
|
||||
{"extra_params": lambda(href):'class="internal"' if href.startswith("http://www.internal-link.com") else 'rel="nofollow" class="external"'},
|
||||
u'<a href="http://www.external-link.com" rel="nofollow" class="external">www.external-link.com</a> and <a href="http://www.internal-link.com/blogs" class="internal">www.internal-link.com/blogs</a> extra'),
|
||||
|
||||
("www.external-link.com",
|
||||
{"extra_params": lambda(href):' rel="nofollow" class="external" '},
|
||||
u'<a href="http://www.external-link.com" rel="nofollow" class="external">www.external-link.com</a>'),
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue