Unicode support for wordcount.
authorArmin Ronacher <armin.ronacher@active-4.com>
Wed, 5 Aug 2009 16:07:13 +0000 (18:07 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Wed, 5 Aug 2009 16:07:13 +0000 (18:07 +0200)
--HG--
branch : trunk

jinja2/filters.py

index 76cdcc12d7ecfd6b17ea15fe95a972493de1387e..676627f34d1c843961e54adb1d73e43603b33fae 100644 (file)
@@ -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):