Skip to content

Fix for whitespace in keyword enum reference names - #1253

Merged
sebastienlagarde merged 4 commits into
masterfrom
sg/fix-whitespaces-in-enum-keywords
Jul 17, 2020
Merged

Fix for whitespace in keyword enum reference names#1253
sebastienlagarde merged 4 commits into
masterfrom
sg/fix-whitespaces-in-enum-keywords

Conversation

@elizabeth-legros

@elizabeth-legros elizabeth-legros commented Jul 10, 2020

Copy link
Copy Markdown
Contributor

Keyword reference names should not have whitespace in them, so mofied the regex filter on the reference name to strip whitespaces (\s)
https://fogbugz.unity3d.com/f/cases/1262241/

@elizabeth-legros
elizabeth-legros requested review from a user and alindmanUnity July 10, 2020 20:44
@elizabeth-legros
elizabeth-legros marked this pull request as ready for review July 10, 2020 20:48
@elizabeth-legros
elizabeth-legros requested a review from a team as a code owner July 10, 2020 20:48
@ghost ghost added the needs-backport-9.x label Jul 13, 2020
@ghost

ghost commented Jul 13, 2020

Copy link
Copy Markdown

Having an enum with whitespace in a reference name causes the graph to throw confusing errors when compiling. I'd recommend this gets backported.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spaces are turned into underscores and adding new enum entries still works.

@sebastienlagarde
sebastienlagarde merged commit cd88cc7 into master Jul 17, 2020
@sebastienlagarde
sebastienlagarde deleted the sg/fix-whitespaces-in-enum-keywords branch July 17, 2020 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants