Skip to content

Commit b0992f8

Browse files
fix: replace String.prototype.includes with String.prototype.indexOf (#530)
1 parent ee626a1 commit b0992f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const validateDeviceId = function validateDeviceId(deviceId) {
102102
if (!validateInput(deviceId, 'deviceId', 'string')) {
103103
return false;
104104
}
105-
if (deviceId.includes('.')) {
105+
if (deviceId.indexOf('.') >= 0) {
106106
log.error(`Device IDs may not contain '.' characters. Value will be ignored: "${deviceId}"`);
107107
return false;
108108
}

0 commit comments

Comments
 (0)