Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jun 30, 2011

Conversation

Projects
None yet
2 participants
Contributor

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 added a commit that referenced this pull request Jun 30, 2011

@evanmiller evanmiller Merge pull request #14 from peeb/master
Support for input text with no URLs in it in erlydtl_filters:urlize/2
56b50af

@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