Skip to content

Commit

Permalink
Adding comment for regex
Browse files Browse the repository at this point in the history
  • Loading branch information
teresaqhoang committed Aug 15, 2023
1 parent f1a3149 commit 198e6d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/components/chat/chat-list/ChatListSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export const ChatListSection: React.FC<IChatListSectionProps> = ({ header, conve
const lastMessage = messages[convo.messages.length - 1];
const isSelected = id === selectedId;

/* Regex to match the Copilot timestamp format that used as the default chat name.
The format is: 'Copilot @ MM/DD/YYYY, hh:mm:ss AM/PM'. */
const autoGeneratedTitleRegex =
/Copilot @ [0-9]{1,2}\/[0-9]{1,2}\/[0-9]{1,4}, [0-9]{1,2}:[0-9]{2}:[0-9]{2} [A,P]M/;
const firstUserMessage = messages.find(
Expand Down

0 comments on commit 198e6d7

Please sign in to comment.