Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19610] String.format not IEEE printf compatible

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTiAPI
LabelsMobile, String.format, engTriage
ReporterMario
AssigneeUnknown
Created2015-03-15T18:34:30.000+0000
Updated2019-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.

Comments

No comments

JSON Source