{ "id": "174538", "key": "TIMOB-27651", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2019-12-12T14:02:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engTriage", "griffin-app" ], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [], "assignee": null, "updated": "2019-12-12T19:18:04.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "const mytext = ':\\n';\r\nconsole.error(`mytext: ${JSON.stringify(mytext, null, 2)}`);\r\nconst escaped = escape(mytext);\r\nconsole.error(`escaped: ${JSON.stringify(escaped, null, 2)}`);\r\n \r\nThis is the error I am getting:\r\n \r\n[DEBUG] escaped: \"\"\r\n\r\n \r\nIf I run this in regular JavaScript, it works correctly and I get this:\r\n \r\n{{escaped: \"%3A%0A\"}}\r\n\r\n\r\n{color:#d04437}UPDATE: I have also tried using encodeURI as a replacement for escape but I get the same results.{color}\r\n", "attachment": [], "flagged": false, "summary": "escape function is returning error", "creator": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }