Updated CAMELCASE_EXCLUDE_CHARS to also exclude digits (patch by Adam Wentz)

This commit is contained in:
Pablo Hoffman 2011-07-06 20:11:11 -03:00
parent 7abc4b4c5a
commit ab9b786791
1 changed files with 1 additions and 1 deletions

View File

@ -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