Skip to content

Commit cc6c1a8

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

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
@@ -39,7 +39,7 @@ function parse (text, reviver, options) {
3939
return obj
4040
}
4141
} else {
42-
if (!text.match(suspectConstructorRx)) {
42+
if (suspectConstructorRx.test(text) === false) {
4343
return obj
4444
}
4545
}

0 commit comments

Comments
 (0)