Improve normalisation/validation mean for String types
Open
@medikoo is already working on this.
Since Oct 15, 2015.
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
/cc @mtuchowski @kamsi
e.g. we'd like to have just upper case result. This case is normalizable, while in dbjs all we have now is pattern which is treated strict way (if string doesn't match it is assumed invalid and cannot be normalized), Still pattern would not be ideal for upper, lower case as it's not possible to easily and accurately describe such rule with regex.
Summarising this is about two things:
- Allow ease configuration of forced case (lower or upper) on string types and string property descriptors
- Alllow custom normalisation for
patternvalidation, for feasible cases (e.g. entering-betweet NIP numbers), in such case even if input string doesn't match pattern it may be treated as normalisable, then valid.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.