code: function mask(toggle) {
  	var input = new RegExp('[' + (toggle ? GROUP_DELIMITER : GROUP_MASK) + ']', 'gi');
  	var output = toggle ? GROUP_MASK : GROUP_DELIMITER;
  	return function (value) {
  		return value.replace(input, output);
  	};
  }
docs: Mask function