mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Make to_camel_case support numbers too.
This is needed to convert preserve-3d into Preserve3d.
This commit is contained in:
parent
1aadbd463a
commit
37cd870a9e
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue