GravityPDF / gravity-pdf

Gravity PDF is the ultimate third-party PDF automation tool for generating digital PDFs using the popular form-builder plugin Gravity Forms.
https://gravitypdf.com
89 stars 20 forks source link

Allow valid integers (10) and floats (10.5) in Number fields #1569

Closed jakejackson1 closed 2 months ago

jakejackson1 commented 2 months ago

Description

Any strings that start with a number but is invalid will also be set to 0.

Testing instructions

  1. Set font size to 9pt, save.
  2. View PDF
  3. Set font size to 9.5pt, save.
  4. View PDF

Checklist:

Additional Comments

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 76.06%. Comparing base (364fc70) to head (e67fb25). Report is 1 commits behind head on hot-patch-6.11.2.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## hot-patch-6.11.2 #1569 +/- ## ================================================= Coverage 76.05% 76.06% ================================================= Files 248 248 Lines 12999 13001 +2 Branches 370 370 ================================================= + Hits 9887 9889 +2 Misses 3104 3104 Partials 8 8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.