'use strict';

module.exports = function() {
  return new RegExp('^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$');
}

'use strict';

module.exports = function(options) {
  options = options || {};
  var regexBase = '([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})';

  return options.exact ? new RegExp('^' + regexBase + '$') :
                         new RegeExp(regexBase + 'g')
}

Add options for exact or globa regex
Add options for exact or globa regex
