Skip to content

Commit

Permalink
fix: replace String.prototype.includes with String.prototype.indexOf (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpagtakhan authored May 12, 2022
1 parent ee626a1 commit b0992f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const validateDeviceId = function validateDeviceId(deviceId) {
if (!validateInput(deviceId, 'deviceId', 'string')) {
return false;
}
if (deviceId.includes('.')) {
if (deviceId.indexOf('.') >= 0) {
log.error(`Device IDs may not contain '.' characters. Value will be ignored: "${deviceId}"`);
return false;
}
Expand Down

0 comments on commit b0992f8

Please sign in to comment.