Skip to content

Commit e772b13

Browse files
committed
refactor: 增加小写键值转化
1 parent 70b48df commit e772b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor.Server/Services/CodeSnippetService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public async Task<string> GetCodeAsync(string codeFile)
6262
{
6363
// codeFile = ajax.razor.cs
6464
var segs = codeFile.Split('.');
65-
var key = segs[0];
65+
var key = segs[0].ToLowerInvariant();
6666
var typeName = SourceCodes.TryGetValue(key, out var value) ? value : string.Empty;
6767
if (!string.IsNullOrEmpty(typeName))
6868
{

0 commit comments

Comments
 (0)