mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 20:08:51 -06:00
refactor: public names for cross-module reads
This commit is contained in:
1 parent
f371790dc6
commit
3853ca2f1c
254 files changed
+2955
-2969
No files matched your search
@@ -23,7 +23,7 @@ def toc_slug(text: str) -> str:
|
||||
return re.sub(r"[-\s]+", "-", text)
|
||||
|
||||
|
||||
def _unique(ident: str, used: set[str]) -> str:
|
||||
def unique_anchor(ident: str, used: set[str]) -> str:
|
||||
while ident in used or not ident:
|
||||
match = IDCOUNT.match(ident)
|
||||
ident = f"{match[1]}_{int(match[2]) + 1}" if match else f"{ident}_1"
|
||||
|
||||
Reference in new issue
Block a user