From ab9b786791dce0dcd126280102b5504bba14d55b Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Wed, 6 Jul 2011 20:11:11 -0300 Subject: [PATCH] Updated CAMELCASE_EXCLUDE_CHARS to also exclude digits (patch by Adam Wentz) --- scrapy/utils/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/utils/template.py b/scrapy/utils/template.py index 7c1946638..19ad64809 100644 --- a/scrapy/utils/template.py +++ b/scrapy/utils/template.py @@ -16,7 +16,7 @@ def render_templatefile(path, **kwargs): if path.endswith('.tmpl'): os.remove(path) -CAMELCASE_INVALID_CHARS = re.compile('[^a-zA-Z]') +CAMELCASE_INVALID_CHARS = re.compile('[^a-zA-Z\d]') def string_camelcase(string): """ Convert a word to its CamelCase version and remove invalid chars