medikoo / medikoo/dbjs

Improve normalisation/validation mean for String types

Open
#45 0 comments 0 reactions 1 assignee View on GitHub

@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 pattern validation, 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.