Skip to content

Commit d00c382

Browse files
Rename the variable "macAddressMaybe" to "macAddress".
1 parent de07361 commit d00c382

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validator.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
var isbn10Maybe = /^(?:[0-9]{9}X|[0-9]{10})$/
5353
, isbn13Maybe = /^(?:[0-9]{13})$/;
5454

55-
var macAddressMaybe = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;
55+
var macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;
5656

5757
var ipv4Maybe = /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/
5858
, ipv6Block = /^[0-9A-F]{1,4}$/i;
@@ -298,7 +298,7 @@
298298
};
299299

300300
validator.isMACAddress = function (str) {
301-
return macAddressMaybe.test(str);
301+
return macAddress.test(str);
302302
};
303303

304304
validator.isIP = function (str, version) {

0 commit comments

Comments
 (0)