1. Ben Bangert
  2. WebHelpers
  3. Issues
Issue #32 resolved

auto_link doesn't handle closing square-bracket

Anonymous created an issue

Links enclosed with square-brackets do not get linkified correctly.

Example: {{{

!python

auto_link('[http://www.example.com]')

=> literal(u'[<a href="http://www.example">http://www.example</a>.com]')

}}}

This can be remedied by adding closing square-bracket to the "trailing text" portion of AUTO_LINK_RE in tools.py.