alibaba / formily

📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
https://formilyjs.org/
MIT License
11.36k stars 1.48k forks source link

fix: money format regex #3913

Closed hchlq closed 1 year ago

hchlq commented 1 year ago

Before submitting a pull request, please make sure the following is done...

Please do not delete the above content


What have you changed?

hchlq commented 1 year ago

小数点和后面的数字应该是整体一起的,要么出现要么不出现

hchlq commented 1 year ago

\.?\d*-> (\.\d+)?

codecov[bot] commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (b9ab509) 96.59% compared to head (c95ffdb) 96.60%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## formily_next #3913 +/- ## ============================================= Coverage 96.59% 96.60% ============================================= Files 152 152 Lines 6695 6708 +13 Branches 1869 1818 -51 ============================================= + Hits 6467 6480 +13 - Misses 200 228 +28 + Partials 28 0 -28 ``` | [Impacted Files](https://app.codecov.io/gh/alibaba/formily/pull/3913?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=alibaba) | Coverage Δ | | |---|---|---| | [packages/validator/src/formats.ts](https://app.codecov.io/gh/alibaba/formily/pull/3913?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=alibaba#diff-cGFja2FnZXMvdmFsaWRhdG9yL3NyYy9mb3JtYXRzLnRz) | `100.00% <ø> (ø)` | | ... and [9 files with indirect coverage changes](https://app.codecov.io/gh/alibaba/formily/pull/3913/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=alibaba)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.