fix(Read/Write Files from Disk Node): Escape parenthesis when reading file (#11753)

This commit is contained in:
Michael Kret
2024-11-20 15:48:15 +02:00
committed by GitHub
parent 9cc5bc1aef
commit 285534e6d0
3 changed files with 25 additions and 1 deletions

View File

@@ -30,3 +30,10 @@ export function errorMapper(
return new NodeOperationError(this.getNode(), error, { itemIndex, message, description });
}
export function escapeSpecialCharacters(str: string) {
// Escape parentheses
str = str.replace(/[()]/g, '\\$&');
return str;
}