Skip to content

Commit

Permalink
Fix unsafe negation in storybook preset
Browse files Browse the repository at this point in the history
  • Loading branch information
ja0n committed Sep 23, 2020
1 parent 8c61308 commit f53eadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-plugin-storybook/preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function filterModuleRules(config) {
return [
...config.module.rules.filter((rule) => {
// the rules we're filtering use RegExp for the test
if (!rule.test instanceof RegExp) return true
if (!(rule.test instanceof RegExp)) return true
// use Next.js' built-in CSS
if (rule.test.test('hello.css')) {
return false
Expand Down

0 comments on commit f53eadf

Please sign in to comment.