From e3601f2369ba636b7f26623bafe121e9859bcc7a Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Sun, 1 Jan 2023 21:12:46 -0500 Subject: [PATCH] chore(lint): fix unicorn/better-regex --- .eslintrc.cjs | 1 - src/utils/__tests__/formatToClfTime.test.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c4c923004..f696495e1 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -65,7 +65,6 @@ module.exports = { }, ], // unicorn temp off - 'unicorn/better-regex': 'off', 'unicorn/catch-error-name': 'off', 'unicorn/consistent-destructuring': 'off', 'unicorn/consistent-function-scoping': 'off', diff --git a/src/utils/__tests__/formatToClfTime.test.js b/src/utils/__tests__/formatToClfTime.test.js index d417bad62..8140968f5 100644 --- a/src/utils/__tests__/formatToClfTime.test.js +++ b/src/utils/__tests__/formatToClfTime.test.js @@ -9,6 +9,6 @@ describe('formatToClfTime', () => { const result = formatToClfTime(millis) // expected: 17/Dec/1995:03:24:00 -0500 (with varying offset) - assert.match(result, /([\w:/]+\s[+-]\d{4})/) + assert.match(result, /([\w/:]+\s[+-]\d{4})/) }) })