function extractLineColumnInfo(
  link: string,
  localLinkRegex: any,
  platform: string
): LineColumnInfo {
  const matches: string[] | null = localLinkRegex.exec(link);
  const lineColumnInfo: LineColumnInfo = {
    lineNumber: 1,
    columnNumber: 1,
  };

  if (!matches) {
    return lineColumnInfo;
  }

  const lineAndColumnMatchIndex =
    platform === 'win32'
      ? winLineAndColumnMatchIndex
      : unixLineAndColumnMatchIndex;
  for (let i = 0; i < lineAndColumnClause.length; i++) {
    const lineMatchIndex =
      lineAndColumnMatchIndex + lineAndColumnClauseGroupCount * i;
    const rowNumber = matches[lineMatchIndex];
    if (rowNumber) {
      lineColumnInfo['lineNumber'] = parseInt(rowNumber, 10);
      // Check if column number exists
      const columnNumber = matches[lineMatchIndex + 2];
      if (columnNumber) {
        lineColumnInfo['columnNumber'] = parseInt(columnNumber, 10);
      }
      break;
    }
  }

  return lineColumnInfo;
}
Returns line and column number of URl if that is present.

@param link Url link which may contain line and column number.