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
+2 -2
View File
@@ -10,9 +10,9 @@ exports.config = {
searchOptions: {
type: 'TCPport',
searchBuffer: Buffer.from('< GET DEVICE_ID >', 'ascii'),
testPort: 3032,
testPort: 2202,
validateResponse(msg, info) {
return msg.toString().indexOf('DEVICE_ID');
return msg.toString().includes('DEVICE_ID');
},
},
};