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

Provides a central method to cleanup / normalize strings #464

Merged
merged 6 commits into from
Jun 23, 2023

Conversation

andyHa
Copy link
Member

@andyHa andyHa commented Jun 22, 2023

No description provided.

We have multiple "normalizeString" method sprinkled accross our
codebase - and we never know what "normalize" actually means.

Therefore, we provide a central method with explicit cleanup
parameters. Note that the enum sets defining the operations
should probably be defined as constants so that we always
apply the same op for the same strings.
@andyHa andyHa added the 🧬 Enhancement Contains new features label Jun 22, 2023
Copy link
Member

@sabieber sabieber left a comment

Choose a reason for hiding this comment

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

Optional: Whats missing to replace the item number normalization in OX with this is Cleanups.UPPERCASE.

Also I think the convention for enum names is to use the singular, so Cleanup, StringCleanup or CleanupMode instead of Cleanups.

@sabieber sabieber merged commit b2e6f6f into develop Jun 23, 2023
2 checks passed
@sabieber sabieber deleted the feature/aha/central branch June 23, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧬 Enhancement Contains new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants