Skip to content

Commit b566e0a

Browse files
Merge pull request CommunityToolkit#91 from CommunityToolkit/fix/codespace-sample-launching
Codespaces: Fix launching all-sample app, add auto sample discovery
2 parents 84057c4 + f9b5d3e commit b566e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommunityToolkit.Labs.Core.SourceGenerators/ToolkitSampleMetadataGenerator.Documentation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private ImmutableArray<ToolkitFrontMatter> GatherDocumentFrontMatter(SourceProdu
147147
}
148148

149149
// Get the filepath we need to be able to load the markdown file in sample app.
150-
var filepath = file.Path.Split(new string[] { @"\labs\" }, StringSplitOptions.RemoveEmptyEntries).LastOrDefault();
150+
var filepath = file.Path.Split(new string[] { @"\labs\", "/labs/" }, StringSplitOptions.RemoveEmptyEntries).LastOrDefault();
151151

152152
// Look for sample id tags
153153
var matches = MarkdownRegexSampleTag.Matches(content);

0 commit comments

Comments
 (0)