Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 7e58602

Browse files
author
Lakshmi Priya Sekar
committed
Change regex string
1 parent fd51d25 commit 7e58602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.CodeFormatting/Rules/HasUnderScoreInPrivateFieldNamesFormattingRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private async Task<Solution> RenameFields(Solution solution, DocumentId document
8888
private static string GetNewSymbolName(ISymbol symbol)
8989
{
9090
var symbolName = symbol.Name.TrimStart('_');
91-
Regex regex = new Regex("^(.)_");
91+
Regex regex = new Regex("^._");
9292
if (regex.IsMatch(symbolName)) symbolName = symbolName.Remove(0, 2);
9393
if (symbol.IsStatic)
9494
{

0 commit comments

Comments
 (0)