We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fc1c32 commit fcf853fCopy full SHA for fcf853f
index.js
@@ -31,7 +31,7 @@ function parse (text, reviver, options) {
31
}
32
33
if (protoAction !== 'ignore' && constructorAction !== 'ignore') {
34
- if (!text.match(suspectProtoRx) && !text.match(suspectConstructorRx)) {
+ if (suspectProtoRx.test(text) === false && suspectConstructorRx.test(text) === false) {
35
return obj
36
37
} else if (protoAction !== 'ignore' && constructorAction === 'ignore') {
0 commit comments