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

Sentence breaker gets confused by property names. #1887

Closed
ghost opened this issue May 31, 2020 · 1 comment · Fixed by #1888
Closed

Sentence breaker gets confused by property names. #1887

ghost opened this issue May 31, 2020 · 1 comment · Fixed by #1888

Comments

@ghost
Copy link

ghost commented May 31, 2020

If the validation rule description resource string is "The property x.y is absent. It needs to be present.", then the sentence breaker thinks that "x." is the end of the sentence, and it sets the rule's short description to "The property x.".

Don't take "." as the end of the sentence unless it is followed by white space or it's the last character in the string.

@ghost
Copy link
Author

ghost commented May 31, 2020

Fix was to use the existing extension method GetFirstSentence.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants