mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
improvement: Support numbers with commas in them (#2636)
This commit is contained in:
parent
f14ae52e94
commit
eb9e67e36a
5 changed files with 63 additions and 23 deletions
13
src/tests/charts.test.tsx
Normal file
13
src/tests/charts.test.tsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { tryParseSpreadsheet } from "../charts";
|
||||
|
||||
describe("tryParseSpreadsheet", () => {
|
||||
it("works for numbers with comma in them", () => {
|
||||
const result = tryParseSpreadsheet(
|
||||
`Week Index${"\t"}Users
|
||||
Week 1${"\t"}814
|
||||
Week 2${"\t"}10,301
|
||||
Week 3${"\t"}4,264`,
|
||||
);
|
||||
expect(result).toMatchSnapshot();
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue