Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/breadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function getContentFiles(folderPath: string): Promise<FileInfo[]> {
async function getBreadcrumbCards(breadcrumbPath: string): Promise<Set<string>> {
try {
const content = await fs.promises.readFile(breadcrumbPath, 'utf-8');
const cardMatches = content.match(/<Card[^>]*href="([^"]+)"[^>]*>/g) || [];
const cardMatches = content.match(/<Card[^>]*href=['"]([^'"]+)['"][^>]*>/g) || [];
return new Set(
cardMatches.map(match => {
const hrefMatch = match.match(/href="([^"]+)"/);
Expand Down