replace indexOf with includes where possible

This commit is contained in:
2023-01-05 08:51:31 -06:00
parent a7256ba894
commit 778173b118
7 changed files with 29 additions and 86 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ exports.config = {
devicePort: 4352,
listenPort: 4352,
validateResponse(msg, info) {
return msg.toString().indexOf('%2ACKN=') >= 0;
return msg.toString().includes('%2ACKN=');
},
},
fields: [