Skip to content

Commit

Permalink
style: Make to_camel_case support numbers too.
Browse files Browse the repository at this point in the history
This is needed to convert preserve-3d into Preserve3d.
  • Loading branch information
emilio committed Dec 5, 2017
1 parent 1aadbd4 commit 37cd870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/properties/data.py
Expand Up @@ -38,7 +38,7 @@ def to_rust_ident(name):


def to_camel_case(ident):
return re.sub("(^|_|-)([a-z])", lambda m: m.group(2).upper(), ident.strip("_").strip("-"))
return re.sub("(^|_|-)([a-z0-9])", lambda m: m.group(2).upper(), ident.strip("_").strip("-"))


def to_camel_case_lower(ident):
Expand Down

0 comments on commit 37cd870

Please sign in to comment.