mirror of https://github.com/scrapy/scrapy.git
Updated CAMELCASE_EXCLUDE_CHARS to also exclude digits (patch by Adam Wentz)
This commit is contained in:
parent
7abc4b4c5a
commit
ab9b786791
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue