From c421efe074dbedd5c3338d3abcb5ca195ce77d71 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Wed, 5 Aug 2009 18:07:13 +0200 Subject: [PATCH] Unicode support for wordcount. --HG-- branch : trunk --- jinja2/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja2/filters.py b/jinja2/filters.py index 76cdcc1..676627f 100644 --- a/jinja2/filters.py +++ b/jinja2/filters.py @@ -18,7 +18,7 @@ from jinja2.runtime import Undefined from jinja2.exceptions import FilterArgumentError, SecurityError -_word_re = re.compile(r'\w+') +_word_re = re.compile(r'\w+(?u)') def contextfilter(f): -- 2.26.2