Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameWidget : Improve validator #6046

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

johnhaddon
Copy link
Member

  • Allow ':', since that has been allowed at the API level since 1.3.0.0.
  • Automatically convert all invalid characters to _. This allows anything to be copy-pasted into the field, whereas before anything with an invalid character was rejected.

@johnhaddon johnhaddon requested a review from ericmehl September 17, 2024 16:53
@johnhaddon johnhaddon self-assigned this Sep 17, 2024
Copy link
Collaborator

@ericmehl ericmehl left a comment

Choose a reason for hiding this comment

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

Code looks good to me. Does it deserve an entry in the change log?

- Allow ':', since that has been allowed at the API level since 1.3.0.0.
- Automatically convert all invalid characters to `_`. This allows anything to be copy-pasted into the field, whereas before anything with an invalid character was rejected.
@johnhaddon
Copy link
Member Author

Does it deserve an entry in the change log?

Doh! I had written one but failed to commit it. I've included one in the latest push.

@ericmehl ericmehl merged commit cbd8e39 into GafferHQ:1.4_maintenance Sep 18, 2024
6 checks passed
@johnhaddon johnhaddon deleted the nameWidgetValidator branch October 1, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants