Skip to content

Commit

Permalink
use String.includes instead of String.contains
Browse files Browse the repository at this point in the history
  • Loading branch information
iostat committed Apr 20, 2021
1 parent ef57fb1 commit 695ed17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Language/Solidity/Compiler.js
Expand Up @@ -84,7 +84,7 @@ exports._compile = function (solc, input, readCallback) {
// in both compile and compileStandardWrapper at some point....
const compile = function(i, cb) {
const isCallbackError = function(e) {
return e.toString().toLowerCase().contains("invalid callback");
return e.toString().toLowerCase().includes("invalid callback");
};
if (solc.compileStandardWrapper) {
try {
Expand Down

0 comments on commit 695ed17

Please sign in to comment.