mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: HTTP Request tool - allow hyphens in placeholders (#10037)
This commit is contained in:
@@ -355,7 +355,7 @@ export const configureResponseOptimizer = (ctx: IExecuteFunctions, itemIndex: nu
|
|||||||
};
|
};
|
||||||
|
|
||||||
const extractPlaceholders = (text: string): string[] => {
|
const extractPlaceholders = (text: string): string[] => {
|
||||||
const placeholder = /(\{[a-zA-Z0-9_]+\})/g;
|
const placeholder = /(\{[a-zA-Z0-9_-]+\})/g;
|
||||||
const returnData: string[] = [];
|
const returnData: string[] = [];
|
||||||
|
|
||||||
const matches = text.matchAll(placeholder);
|
const matches = text.matchAll(placeholder);
|
||||||
|
|||||||
Reference in New Issue
Block a user