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

chore: Improve StringBone #714

Merged

Conversation

sveneberth
Copy link
Member

  • Allow None as valid maxLength argument (which means unlimited)
  • Validate length of input in isInvalid
  • Don't do utils.escapeString in singleValueFromClient twice
  • Add docstring
  • Refactor an ugly if

* Allow `None` as valid `maxLength` argument (which means unlimited)
* Validate length of input in `isInvalid`
* Don't do `utils.escapeString` in `singleValueFromClient` twice
* Add docstring
* Refactor an ugly if
@sveneberth sveneberth added feature New feature or request Priority: Medium This issue may be useful, and needs some attention. labels Apr 14, 2023
core/bones/string.py Outdated Show resolved Hide resolved
Co-authored-by: agudermann <47318461+ArneGudermann@users.noreply.github.com>
@phorward phorward changed the title Improve StringBone chore: Improve StringBone Apr 18, 2023
@phorward phorward merged commit 6e75dbe into viur-framework:develop Apr 24, 2023
@sveneberth sveneberth deleted the feature/improve_stringbone branch April 26, 2023 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request Priority: Medium This issue may be useful, and needs some attention.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify maxLength-parameter in StringBone defining "unlimited length"
3 participants