code: function _getMaxOsxID(text) {
    let max = 0;
    _.each(text.split('\n'), line => {
      line = line.trim();
      if (line === '') return;
      const id = parseInt(line.replace(/.*\s+(-?\d+)\s*$/, '$1'), 10);
      if (_.isFinite(id) && id > max) {
        max = id;
      }
    });
    return max + 1;
  }
docs: /* ISTANBUL_IGNORE_IF_NOT_OSX