first commit
This commit is contained in:
9
node_modules/n8n-workflow/dist/esm/tool-helpers.js
generated
vendored
Normal file
9
node_modules/n8n-workflow/dist/esm/tool-helpers.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Converts a node name to a valid tool name by replacing special characters with underscores
|
||||
* and collapsing consecutive underscores into a single one.
|
||||
*/
|
||||
export function nodeNameToToolName(nodeOrName) {
|
||||
const name = typeof nodeOrName === 'string' ? nodeOrName : nodeOrName.name;
|
||||
return name.replace(/[^a-zA-Z0-9_-]+/g, '_');
|
||||
}
|
||||
//# sourceMappingURL=tool-helpers.js.map
|
||||
Reference in New Issue
Block a user