File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def camelcase(string: str) -> str:
1818 return ""
1919 # Turn into snake_case, then remove "_" and capitalize first letter
2020 string = "" .join (f"{ s [0 ].upper ()} { s [1 :].lower ()} "
21- for s in re .split (r'_' , snakecase (string )) if s )
21+ for s in re .split (r"_" , snakecase (string )) if s )
2222 # Make first letter lower
2323 return f"{ string [0 ].lower ()} { string [1 :]} " if string else ""
2424
@@ -136,7 +136,7 @@ def separatorcase(
136136 """
137137 if not string :
138138 return ""
139- string_conv = snakecase (string , keep_together ).replace ('_' , separator )
139+ string_conv = snakecase (string , keep_together ).replace ("_" , separator )
140140 before = ("" if (string [0 ].isalnum ()
141141 or string [:len (separator )] == separator
142142 or string_conv [:len (separator ):] == separator )
You can’t perform that action at this time.
0 commit comments