[TIMOB-25935] Windows: Ti.Utils.base64decode should ignore line breaks
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2018-10-16T12:37:27.000+0000 |
| Affected Version/s | Release 7.1.0 |
| Fix Version/s | Release 7.5.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Kota Iguchi |
| Assignee | Kota Iguchi |
| Created | 2018-04-05T08:00:00.000+0000 |
| Updated | 2018-10-16T15:29:50.000+0000 |
Description
Ti.Utils.base64decode should trim trailing line breaks to keep parity with other platforms.
var str = 'RGVjb2Rpbmcgc3VjY2Vzc2Z1bCE=\n';
var blob = Ti.Utils.base64decode(str);
Ti.API.info(blob.getText());
Expected: This should print "Decoding successful!"
https://github.com/appcelerator/titanium_mobile_windows/pull/1220
FR Passed. waiting for CR and merge
*Closing ticket*. Verified fix in SDK Version
7.5.0.v20181016071050.Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1220