This one time, at band camp, Philip Jenvey wrote:
>
>
>On Aug 30, 2006, at 11:05 PM, Jamie Wilkinson wrote:
>
>>
>> Hey,
>>
>> auto_link_urls in WebHelpers is broken, it doesn't fully match some  
>> urls.
>>
>> Attached is a test program to demonstrate.
>
>You didn't attach anything =]

Woops!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---
from webhelpers.rails.text import auto_link_urls

urls = ['http://www.gustavobarbieri.com.br/eagle/',
	'http://openwrt.org/',
	'http://ha.linuxchix.org.br/',
	'http://example.org/cgi-bin/some%20thing.cgi?foo=x&bar=37+x']

if __name__ == '__main__':
	for u in urls:
		expected = '<a href="%s">%s</a>' % (u, u)
		actual = auto_link_urls(u)
		assert expected == actual, "\nexpected: %r,\n      got %r" % (expected, actual)

Reply via email to