Skip to content

Commit

Permalink
Make default pathToStyles regexp more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
ezhlobo committed Sep 4, 2018
1 parent 9347eb6 commit 030a71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const SOURCE_ATTR_NAME = 'styleName'
const TARGET_ATTR_NAME = 'className'

const getPathChecker = state =>
state.opts.pathToStyles || /^\.\/styles.css$/
state.opts.pathToStyles || /^\.\/styles\.css$/

const isCssModuleImport = (node, state) => {
const pathChecker = getPathChecker(state)
Expand Down

0 comments on commit 030a71f

Please sign in to comment.