[TIMOB-19610] String.format not IEEE printf compatible
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | TiAPI |
Labels | Mobile, String.format, engTriage |
Reporter | Mario |
Assignee | Unknown |
Created | 2015-03-15T18:34:30.000+0000 |
Updated | 2019-12-09T22:43:16.000+0000 |
Description
I am expecting:
console.log ( String.format("Third: %3$s, Second: %2$s, First: %1$s", 'First', 'Second', 'Third') );
to print:
Third: Third, Second: Second, First: First
But instead it prints:
Third: First, Second: Second, First: Third
The position indication using % is ignored.
No comments