I’m validating file content in the script node with Javascript" startsWith() "and “endsWith()” methods.
The issue here is startsWith is working in my case but endsWith not working if the file content has multiple lines.
Working Scenario : var str = “Hello world, welcome to the universe.”;
var n = str.endsWith(“universe.”); // It gives “true”
Error Scenario: var str = “Hello world,
welcome
to the
universe.”;
var n = str.endsWith(“universe.”); // It gives “false”
I tried all the esc sequence characters.