gristlabs_grist-core/app
Dmitry S 93a2d26182 (core) Fix a bug with editing numbers in some locales.
Summary:
Adds a new test for formatting and fix several related bugs it uncovered:
1. When editing a number with "," decimal separator, ensure it opens in
   the editor with "," (rather than ".", the original bug motivating this).
2. When guessing number format, set maxDecimals when it's needed
   (otherwise, e.g. "$1.234", or "4.5%" weren't guessed as numeric)
3. When guessing number format, ignore whitespace when deciding if
   guessed format is correct (otherwise percents can't be guessed in
   locales which add "%" with a non-breaking space before it).

Test Plan: Added a test case that exercises all fixed behaviors.

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D4177
2024-02-02 22:48:05 -05:00
..
client (core) Fix a bug with editing numbers in some locales. 2024-02-02 22:48:05 -05:00
common (core) Fix a bug with editing numbers in some locales. 2024-02-02 22:48:05 -05:00
gen-server (core) Form Publishing 2024-01-12 11:58:12 -08:00
plugin (core) Forms improvements 2024-01-19 10:34:03 +01:00
server (core) Fix bug forcing login on some form URLs 2024-02-01 12:10:52 -05:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00