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})/) }) })