-
Notifications
You must be signed in to change notification settings - Fork 87
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
add StripNormalizer #133
add StripNormalizer #133
Conversation
@@ -1,6 +1,6 @@ | |||
// | |||
// Normalizer.swift | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if there is any formatter I should use, but I noticed the current codebase seems to have the inconsistent format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's not. We'll get there eventually. For now, removing trailing spaces like these is totally fine (thank you!), but I'd rather not reformat existing blocks of code until we agree on a style.
@@ -1,6 +1,6 @@ | |||
// | |||
// Normalizer.swift | |||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's not. We'll get there eventually. For now, removing trailing spaces like these is totally fine (thank you!), but I'd rather not reformat existing blocks of code until we agree on a style.
case .Precompiled : return PrecompiledNormalizer(config: config) | ||
case .StripAccents : return StripAccentsNormalizer(config: config) | ||
default : fatalError("Unsupported Normalizer type: \(typeName)") | ||
case .Prepend: return PrependNormalizer(config: config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these spaces are fine to remove too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @mzbac!
try to resolve #127