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

string length documentation #13

Merged
merged 1 commit into from
May 22, 2023
Merged

Conversation

ragi-dayananda
Copy link
Contributor

@ragi-dayananda ragi-dayananda commented May 22, 2023

Closes

Documentation update about string length validator configuration

Screenshots or Video

Screenshot 2023-05-22 151258

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to master from fork:branchname
  • Manual accessibility test performed
    • Keyboard-only access, including forms
    • Contrast at least WCAG Level A
    • Appropriate labels, alt text, and instructions

@netlify
Copy link

netlify bot commented May 22, 2023

Deploy Preview for concerto-docs ready!

Name Link
🔨 Latest commit 3df7706
🔍 Latest deploy log https://app.netlify.com/sites/concerto-docs/deploys/646b397a7d144b000868efcd
😎 Deploy Preview https://deploy-preview-13--concerto-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

o String myString regex=/abc.*/
```

`String` fields may also include an optional length expression, which is used to validate the number of characters in the string field. Both the minimum and maximum length bound are optional, however at least one must be specified. The maxLength must be greater than or equal to the minLength.
Copy link
Member

Choose a reason for hiding this comment

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

Please add a comment that the bounds are inclusive (I see that you have this explained in the example below).

Also, do you think that we need a warning about this behaviour?
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length#strings_with_length_not_equal_to_the_number_of_characters

@mttrbrts mttrbrts merged commit 9c64a9d into accordproject:main May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants