fix: HTTP Request tool - allow hyphens in placeholders (#10037)

This commit is contained in:
Michael Kret 2024-07-13 04:42:04 +03:00 committed by GitHub
parent f3833a7ce8
commit 8cd93704be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -355,7 +355,7 @@ export const configureResponseOptimizer = (ctx: IExecuteFunctions, itemIndex: nu
};
const extractPlaceholders = (text: string): string[] => {
const placeholder = /(\{[a-zA-Z0-9_]+\})/g;
const placeholder = /(\{[a-zA-Z0-9_-]+\})/g;
const returnData: string[] = [];
const matches = text.matchAll(placeholder);