Skip to content

Fix ValidIdentifierHelper.IsValidIdentifier accepting @ as valid#2040

Open
SimonCropp wants to merge 2 commits intodotnet:mainfrom
SimonCropp:Fix-ValidIdentifierHelper.IsValidIdentifier-accepting-@-as-valid
Open

Fix ValidIdentifierHelper.IsValidIdentifier accepting @ as valid#2040
SimonCropp wants to merge 2 commits intodotnet:mainfrom
SimonCropp:Fix-ValidIdentifierHelper.IsValidIdentifier-accepting-@-as-valid

Conversation

@SimonCropp
Copy link

The else branch stripped the '@' prefix via Substring(1) but never validated the remaining value, so "@" alone was accepted as a valid identifier. Add an empty check after stripping and add tests.

The else branch stripped the '@' prefix via Substring(1) but never validated the remaining value, so "@" alone was accepted as a valid identifier. Add an empty check after stripping and add tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant