Skip to content

Commit

Permalink
[Fix] unescape unnecessarily escaped regex slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 26, 2017
1 parent 72d1385 commit dd28130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/importType.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function isExternalModule(name, settings, path) {
return externalModuleRegExp.test(name) && isExternalPath(path, name, settings)
}

const scopedRegExp = /^@[^\/]+\/[^\/]+/
const scopedRegExp = /^@[^/]+\/[^/]+/
function isScoped(name) {
return scopedRegExp.test(name)
}
Expand Down

0 comments on commit dd28130

Please sign in to comment.