Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27651] escape function is returning error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.3.0
Fix Version/sn/a
Componentsn/a
LabelsengTriage, griffin-app
ReporterBrenton House
AssigneeUnknown
Created2019-12-12T14:02:00.000+0000
Updated2019-12-12T19:18:04.000+0000

Description

const mytext = ':\n'; console.error(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: "" If I run this in regular JavaScript, it works correctly and I get this: escaped: "%3A%0A" {color:#d04437}UPDATE: I have also tried using encodeURI as a replacement for escape but I get the same results.{color}

Comments

No comments

JSON Source