Update convention for op handle.
This commit is contained in:
1 parent
ca16dae100
commit
0a281c571c
14 files changed
+841
-46
No files matched your search
@@ -401,7 +401,8 @@ def _upsert_wikilink(path: Path, target: str) -> None:
|
||||
match = _WIKILINK_ITEM.match(line)
|
||||
if match:
|
||||
name = match.group(1)
|
||||
if name in real_dirs or not real_dirs:
|
||||
# wikilinks are vault-root paths; compare the basename to real_dirs
|
||||
if name.rsplit("/", 1)[-1] in real_dirs or not real_dirs:
|
||||
if name not in names:
|
||||
names.append(name)
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user