From da78ada5c9e8385abd08d351b150ee3a4eefc560 Mon Sep 17 00:00:00 2001 From: Joone Hur Date: Sun, 3 Mar 2024 01:15:38 -0800 Subject: [PATCH] Update date format regex in Linux Command Test Update the date format regex to allow for single-digit day numbers in order to match the expected output. Generated by gpt-3.5-turbo --- test/command.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/command.test.ts b/test/command.test.ts index fd0d372..faafc6c 100644 --- a/test/command.test.ts +++ b/test/command.test.ts @@ -71,7 +71,9 @@ describe("Linux Command Test", () => { ); } else { // Sat Feb 24 06:49:11 UTC 2024 - expect(stdout).to.match(/\w{3} \w{3} \d{2} \d{2}:\d{2}:\d{2} UTC \d{4}/); + expect(stdout).to.match( + /\w{3} \w{3} \s?\d{1,2} \d{2}:\d{2}:\d{2} UTC \d{4}/ + ); } });