[TIMOB-27651] escape function is returning error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 8.3.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | engTriage, griffin-app |
Reporter | Brenton House |
Assignee | Unknown |
Created | 2019-12-12T14:02:00.000+0000 |
Updated | 2019-12-12T19:18:04.000+0000 |
Description
const mytext = ':\n';
console.error("
If I run this in regular JavaScript, it works correctly and I get this:
mytext: ${JSON.stringify(mytext, null, 2)}
);
const escaped = escape(mytext);
console.error(escaped: ${JSON.stringify(escaped, null, 2)}
);
This is the error I am getting:
[DEBUG] escaped: "escaped: "%3A%0A"
{color:#d04437}UPDATE: I have also tried using encodeURI as a replacement for escape but I get the same results.{color}
No comments