Merge pull request #3776 from karyanayandi/fix/replace-full-lodash-imports

fix: replace full lodash imports with per-function imports
This commit is contained in:
Mauricio Siu
2026-02-25 23:41:16 -06:00
committed by GitHub
4 changed files with 6 additions and 6 deletions
@@ -1,5 +1,5 @@
import { Command as CommandPrimitive } from "cmdk";
import { debounce } from "lodash";
import debounce from "lodash/debounce";
import { CheckIcon, Hash } from "lucide-react";
import React, { useCallback, useRef } from "react";
import { Badge } from "@/components/ui/badge";
@@ -1,5 +1,5 @@
import { FancyAnsi } from "fancy-ansi";
import _ from "lodash";
import escapeRegExp from "lodash/escapeRegExp";
import { Badge } from "@/components/ui/badge";
import {
Tooltip,
@@ -47,7 +47,7 @@ export function TerminalLine({ log, noTimestamp, searchTerm }: LogLineProps) {
}
const htmlContent = fancyAnsi.toHtml(text);
const searchRegex = new RegExp(`(${_.escapeRegExp(term)})`, "gi");
const searchRegex = new RegExp(`(${escapeRegExp(term)})`, "gi");
const modifiedContent = htmlContent.replace(
searchRegex,