Skip to content

Commit 3016a87

Browse files
committed
Fix inconsistent quotes
1 parent 8e9ebd9 commit 3016a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

casefy/casefy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)