Skip to content

Commit 2bd2e8b

Browse files
committed
Merge
1 parent d501e65 commit 2bd2e8b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/src/utils/validators.dart

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,9 @@ bool isMACAddress(String value) {
413413
}
414414

415415
for (final part in parts) {
416-
if (part.length != 2) {
417-
return false;
418-
}
419-
420-
if (!_macAddress.hasMatch(part)) {
416+
if (part.length != 2 || !_macAddress.hasMatch(part)) {
421417
return false;
422418
}
423419
}
424-
425420
return true;
426421
}

0 commit comments

Comments
 (0)