Skip to content

Commit 5e04a16

Browse files
delvedorwatson
andauthored
Update index.js
Co-Authored-By: Thomas Watson <[email protected]>
1 parent fcf853f commit 5e04a16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function parse (text, reviver, options) {
3535
return obj
3636
}
3737
} else if (protoAction !== 'ignore' && constructorAction === 'ignore') {
38-
if (!text.match(suspectProtoRx)) {
38+
if (suspectProtoRx.test(text) === false) {
3939
return obj
4040
}
4141
} else {

0 commit comments

Comments
 (0)