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 72a53d3 commit 660ebe8Copy full SHA for 660ebe8
RetailCoder.VBE/UI/Refactorings/Rename/RenameViewModel.cs
@@ -72,7 +72,8 @@ public bool IsValidName
72
return !(NewName.Equals(Target.IdentifierName, StringComparison.InvariantCultureIgnoreCase)) &&
73
char.IsLetter(NewName.FirstOrDefault()) &&
74
!tokenValues.Contains(NewName, StringComparer.InvariantCultureIgnoreCase) &&
75
- !NewName.Any(c => !char.IsLetterOrDigit(c) && c != '_');
+ !NewName.Any(c => !char.IsLetterOrDigit(c) && c != '_') &&
76
+ NewName.Length <= (Target.DeclarationType.HasFlag(DeclarationType.Module) ? 31 : 255);
77
}
78
79
0 commit comments