"use strict";

export function convertToOnigMatch(result) {
  if (!result) return null;
  return {
    index: result.index,
    captureIndices: result.captureIndices.map(capture => ({
      start: capture.start,
      end: capture.end,
      length: capture.length
    }))
  };
}
//# sourceMappingURL=utils.js.map