yiisoft / yiisoft/validator

Need to ensure number validator works with i18n pattern

Open
#530 1 comment 0 reactions 1 assignee View on GitHub

@cebe is already working on this.

Since Feb 1, 2023.

type:docs type:test
Dominant language
PHP
Stars
167
Forks
47
Avg merge
1d 19h
Merged PRs (30d)
3

Description

What steps will reproduce the problem?

Common use case is that Number inputs allow . and , but it could also be possible to allow formatted input like 1.024,56 which should be float 1024.56 in the end.

What is the expected result?

It is currently not documented how to do that, also unit tests are not covering such use cases.

What do you get instead?

Needs to be documented and tested.

I'm working on it.

Contributor guide

Open the contributing guide

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.