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

[refined4s-core] Add NonBlankString which can be neither all whitespace chars nor an empty String #281

Closed
kevin-lee opened this issue Apr 6, 2024 · 0 comments · Fixed by #282
Assignees
Labels
Milestone

Comments

@kevin-lee
Copy link
Owner

Summary

[refined4s-core] Add NonBlankString which can be neither all whitespace chars nor an empty String

Version

0.14.0

Description

e.g.)

NonBlankString("")
// Invalid value: [""]. It must be not all whitespace non-empty String

NonBlankString(" ")
// Invalid value: [" "]. It must be not all whitespace non-empty String

NonBlankString("   ")
// Invalid value: ["   "]. It must be not all whitespace non-empty String

NonBlankString("\n")
// Invalid value: ["\n"]. It must be not all whitespace non-empty String

NonBlankString("\t")
// Invalid value: ["\t"]. It must be not all whitespace non-empty String

NonBlankString("\t\n")
// Invalid value: ["\t\n"]. It must be not all whitespace non-empty String

NonBlankString(" \t \n")
// Invalid value: [" \t \n"]. It must be not all whitespace non-empty String
@kevin-lee kevin-lee added the task label Apr 6, 2024
@kevin-lee kevin-lee added this to the m15 milestone Apr 6, 2024
@kevin-lee kevin-lee self-assigned this Apr 6, 2024
kevin-lee added a commit that referenced this issue Apr 6, 2024
… all whitespace chars nor an empty String
kevin-lee added a commit that referenced this issue Apr 6, 2024
… all whitespace chars nor an empty String
kevin-lee added a commit that referenced this issue Apr 6, 2024
… all whitespace chars nor an empty String
kevin-lee added a commit that referenced this issue Apr 7, 2024
… all whitespace chars nor an empty String
kevin-lee added a commit that referenced this issue Apr 7, 2024
… all whitespace chars nor an empty String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant