Skip to content

Commit 2c9853a

Browse files
Copilotfregante
andcommitted
Clarify isWikiRevision comments to reflect actual implementation
Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
1 parent 9f7f34e commit 2c9853a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export const isWikiRevision = (url: URL | HTMLAnchorElement | Location = locatio
7070
}
7171

7272
const parts = getCleanPathname(url).split('/');
73-
// Wiki/Page/hash or wiki/Page/_history patterns
74-
// Parts: [owner, repo, 'wiki', pageName, revisionOrSpecial, ...]
73+
// Wiki/Page/hash pattern - detects specific revision views
74+
// Parts: [owner, repo, 'wiki', pageName, revisionHash, ...]
7575
return parts.length >= 5 && /^[\da-f]{5,40}$/.test(parts[4]);
7676
};
7777

0 commit comments

Comments
 (0)