Skip to content

Commit fcf853f

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

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
@@ -31,7 +31,7 @@ function parse (text, reviver, options) {
3131
}
3232

3333
if (protoAction !== 'ignore' && constructorAction !== 'ignore') {
34-
if (!text.match(suspectProtoRx) && !text.match(suspectConstructorRx)) {
34+
if (suspectProtoRx.test(text) === false && suspectConstructorRx.test(text) === false) {
3535
return obj
3636
}
3737
} else if (protoAction !== 'ignore' && constructorAction === 'ignore') {

0 commit comments

Comments
 (0)