From f0db77a4b7e5940790ec4b827e1cd60f19e634f4 Mon Sep 17 00:00:00 2001 From: Jacob Shandling <61553566+jacobshandling@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:37:44 +0000 Subject: [PATCH] fix a typo in the regex for a test (#16253) Correct the regex to match 1 or 2 digits, not 1 or 2 backslashes Co-authored-by: Jacob Shandling --- .../cards/Queries/ReportUpdatedCell/ReportUpdatedCell.tests.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/pages/hosts/details/cards/Queries/ReportUpdatedCell/ReportUpdatedCell.tests.tsx b/frontend/pages/hosts/details/cards/Queries/ReportUpdatedCell/ReportUpdatedCell.tests.tsx index 3f059a9bb8..375ecffe5f 100644 --- a/frontend/pages/hosts/details/cards/Queries/ReportUpdatedCell/ReportUpdatedCell.tests.tsx +++ b/frontend/pages/hosts/details/cards/Queries/ReportUpdatedCell/ReportUpdatedCell.tests.tsx @@ -4,7 +4,7 @@ import { render, screen } from "@testing-library/react"; import ReportUpdatedCell from "./ReportUpdatedCell"; -const HUMAN_READABLE_DATETIME_REGEX = /\d{1,2}\/{1,2}\d\/\d\d\d\d, \d{1,2}:\d{1,2}:\d{1,2}\s(A|P)M/; +const HUMAN_READABLE_DATETIME_REGEX = /\d{1,2}\/\d{1,2}\/\d\d\d\d, \d{1,2}:\d{1,2}:\d{1,2}\s(A|P)M/; describe("ReportUpdatedCell component", () => { it("Renders '---' with tooltip and no link when run on an interval with discard data and automations enabled", () => {