From f358b1c27e97a364a0b5488caf35c50d72d4f2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Sat, 18 Apr 2020 12:24:53 +0200 Subject: [PATCH] Allow exponential notation inside icons paths (#2946) --- tests/icons.test.js | 2 +- tests/index.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/icons.test.js b/tests/icons.test.js index f3e551f08..455c3b009 100644 --- a/tests/icons.test.js +++ b/tests/icons.test.js @@ -24,7 +24,7 @@ icons.forEach(icon => { test(`${icon.title} has a "path"`, () => { expect(typeof subject.path).toBe('string'); - expect(subject.path).toMatch(/[MmZzLlHhVvCcSsQqTtAa0-9-,.\s]/g); + expect(subject.path).toMatch(/[MmZzLlHhVvCcSsQqTtAae0-9-,.\s]/g); }); test(`${icon.title} has a "slug"`, () => { diff --git a/tests/index.test.js b/tests/index.test.js index 5a01f200b..29ba3ef68 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -24,7 +24,7 @@ icons.forEach(icon => { test(`${icon.title} has a "path"`, () => { expect(typeof subject.path).toBe('string'); - expect(subject.path).toMatch(/^[MmZzLlHhVvCcSsQqTtAa0-9-,.\s]+$/g); + expect(subject.path).toMatch(/^[MmZzLlHhVvCcSsQqTtAae0-9-,.\s]+$/g); }); test(`${icon.title} has a "slug"`, () => {