Move text-utils.ts to /common

This commit is contained in:
Robert
2023-06-21 09:40:52 +01:00
parent 655adfcd51
commit 1bf14e393f
6 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import { readJsonSync } from "fs-extra";
import { resolve } from "path";
import Ajv, { ValidateFunction } from "ajv";
import { clearLocalDbConfig, DbConfig } from "./db-config";
import { findDuplicateStrings } from "../../pure/text-utils";
import { findDuplicateStrings } from "../../common/text-utils";
import {
DbConfigValidationError,
DbConfigValidationErrorKind,

View File

@@ -5,7 +5,7 @@ import {
parseHighlightedLine,
shouldHighlightLine,
} from "../common/sarif-utils";
import { convertNonPrintableChars } from "../pure/text-utils";
import { convertNonPrintableChars } from "../common/text-utils";
import type {
AnalysisAlert,
AnalysisRawResults,

View File

@@ -9,7 +9,7 @@ import {
} from "../../common/interface-types";
import { assertNever } from "../../common/helpers-pure";
import { vscode } from "../vscode-api";
import { convertNonPrintableChars } from "../../pure/text-utils";
import { convertNonPrintableChars } from "../../common/text-utils";
import { sendTelemetry } from "../common/telemetry";
export interface ResultTableProps {

View File

@@ -9,7 +9,7 @@ import {
} from "../../common/bqrs-cli-types";
import { tryGetRemoteLocation } from "../../common/bqrs-utils";
import TextButton from "../common/TextButton";
import { convertNonPrintableChars } from "../../pure/text-utils";
import { convertNonPrintableChars } from "../../common/text-utils";
import { sendTelemetry, useTelemetryOnChange } from "../common/telemetry";
const numOfResultsInContractedMode = 5;

View File

@@ -1,4 +1,4 @@
import { findDuplicateStrings } from "../../src/pure/text-utils";
import { findDuplicateStrings } from "../../src/common/text-utils";
describe("findDuplicateStrings", () => {
it("should find duplicates strings in an array of strings", () => {