We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf49ba commit 135e7a7Copy full SHA for 135e7a7
src/Files.Uwp/ViewModels/Previews/CodePreviewViewModel.cs
@@ -79,6 +79,6 @@ public async override Task<List<FileProperty>> LoadPreviewAndDetails()
79
{Languages.Aspx, new List<string> {".aspx"} },
80
};
81
82
- private static ILanguage GetCodeLanguage(string ext) => languageExtensions.FirstOrDefault(x => x.Value.Contains(ext)).Key;
+ private static ILanguage GetCodeLanguage(string ext) => languageExtensions.FirstOrDefault(x => x.Value.Contains(ext, StringComparer.OrdinalIgnoreCase)).Key;
83
}
84
0 commit comments