Skip to content

Commit 2f24007

Browse files
committed
chore: modify regex
1 parent cf99a44 commit 2f24007

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webapp/packages/core-blocks/src/useErrorDetails.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export function useErrorDetails(error: IErrorDetailsHook['error']): HookType {
6161
let workflowId: string | undefined;
6262

6363
if (typeof message === 'string') {
64-
const match = message.match(/WorkflowID:(\d+)/);
64+
const match = message.match(/workflow_id:(\d+)/);
6565

6666
if (match) {
6767
workflowId = match[1];
68-
message = message.replace(/WorkflowID:\d+,?\s*/g, '').trim();
68+
message = message.replace(/workflow_id:\d+,?\s*/g, '').trim();
6969
}
7070
}
7171

0 commit comments

Comments
 (0)