Skip to content

Commit

Permalink
fix lightbox regex (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
gewarren authored Nov 27, 2024
1 parent 47a41bc commit b507ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanrepo/Repo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class DocFxRepo(string startDirectory, string urlBasePath)
"lightbox\\s*=\\s*\"(?<path>.*?(\\.(png|gif|jpg|svg))+)\"", // lightbox="media/azure.png"
":::image [^:]*?source\\s*=\\s*\"(?<path>.*?(\\.(png|gif|jpg|svg))+)(\\?[\\w\\s=\\.]+)?\\s*\"", // :::image type="content" source="media/publish.png?text=Publish dialog." alt-text="Publish dialog.":::
"<a href=\"(?<path>[^\"]*?(\\.(png|gif|jpg|svg))+)\"", // <a href="./media/job-large.png" target="_blank"><img src="./media/job-small.png"></a>
"\\((?<path>[^\\)]*?(\\.(png|jpg|gif|svg)))+(#lightbox)\\s*\\)" // (./media/functions-scenarios/process-file-uploads-expanded.png#lightbox)
"\\]\\((?<path>[^\\)]*?(\\.(png|jpg|gif|svg)))+(#lightbox)[\\s|\\)]" //](../images/alignment-expansion-large.png#lightbox)
];
private List<FileInfo>? _allMdAndYmlFiles;
private List<FileInfo>? AllMdAndYmlFiles
Expand Down

0 comments on commit b507ced

Please sign in to comment.