Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit ed1ef70

Browse files
Codeblock: PR review
Co-authored-by: InfinityGhost <[email protected]>
1 parent c6f062f commit ed1ef70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenTabletDriver.Web/TagHelpers/CodeBlockTagHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private string TrimBaseIndentation(string content)
5555
return String.Join(Environment.NewLine, lines);
5656
}
5757

58-
static private Regex TrimStartRegex = new("^\\s*\n(\\s*)(?=\\S*)", RegexOptions.Compiled);
58+
private static readonly Regex TrimStartRegex = new Regex("^\\s*\n(\\s*)(?=\\S*)", RegexOptions.Compiled);
5959

6060
private int CountIndentation(string line) => line.TakeWhile(Char.IsWhiteSpace).Count();
6161
}

0 commit comments

Comments
 (0)