Support for input text with no URLs in it in erlydtl_filters:urlize/2 #14

merged 1 commit into from Jun 30, 2011


None yet

2 participants

peeb commented Jun 29, 2011

I've been using erlyDTL in a web project and wanted to use the urlize filter on generated text which may or may not actually contain URLs (for example twitter statuses).

Right now, urlize/2 produces a badmatch if the Input text does not contain text which can be matched as a URL. The original Django template filter silently ignores text which doesn't match and just returns the original input.

@evanmiller evanmiller merged commit 56b50af into erlydtl:master Jun 30, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment