Fix tests
This commit is contained in:
parent
f40b9d834d
commit
026416d158
6 changed files with 313 additions and 22 deletions
|
|
@ -132,7 +132,7 @@ def _safe_name(s: str) -> str:
|
|||
|
||||
|
||||
def _role_id(raw: str) -> str:
|
||||
# normalize separators first
|
||||
# normalise separators first
|
||||
s = re.sub(r"[^A-Za-z0-9]+", "_", raw)
|
||||
# split CamelCase -> snake_case
|
||||
s = re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue