Skip to content

Commit b8af813

Browse files
authored
fix: fix always-false condition (#464)
1 parent f1bc1c2 commit b8af813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ExportsFieldPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module.exports = class ExportsFieldPlugin {
155155

156156
if (
157157
invalidSegmentRegEx.exec(relativePath.slice(2)) !== null &&
158-
deprecatedInvalidSegmentRegEx.test(relativePath.slice(2)) !== null
158+
deprecatedInvalidSegmentRegEx.test(relativePath.slice(2))
159159
) {
160160
if (paths.length === i) {
161161
return callback(

0 commit comments

Comments
 (0)