Skip to content

Commit

Permalink
chore(lint): fix unicorn/better-regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jan 2, 2023
1 parent 634b159 commit e3601f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/__tests__/formatToClfTime.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})/)
})
})

0 comments on commit e3601f2

Please sign in to comment.