[AC-1164] String format issue
| GitHub Issue | n/a |
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Duplicate |
| Resolution Date | 2015-03-18T01:18:43.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | n/a |
| Reporter | Baharroth |
| Assignee | Shuo Liang |
| Created | 2015-03-17T16:29:03.000+0000 |
| Updated | 2016-03-08T07:37:32.000+0000 |
Description
Steps to Reproduce
Operating System
Name = Mac OS X
Version = 10.9.5
Node.js
Node.js Version = 0.10.13
npm Version = 1.3.2
Titanium CLI
CLI Version = 3.4.1
Titanium SDK
SDK Version = 3.5.0.GA
Target Platform = iphone
On IOS8 Simulator.
Just try this code (from the titanium documentation)
var number = 21;
var message = String.format('%d Welcome, You are visitor number ', number);
Ti.API.info(message);
Actual Result
Display only '21'
The format cut the rest of the string...
Expected Result
Instead of '21 Welcome, You are visitor number '
Comments
JSON Source
Duplicate to TIMOB-18640