Closed GoogleCodeExporter closed 9 years ago
String.substr() with a negative start index does not work in IE, returns an
empty string:
http://msdn.microsoft.com/en-us/library/0esxc5wy
Original comment by garg...@gmail.com
on 15 Feb 2011 at 1:40
Thanks both, it is indeed a problem with the substr(-1) vs IE.
Original comment by apar...@gmail.com
on 13 Apr 2011 at 3:36
Fixed in repo. Official release to follow this week.
Diff:
323 - if (!(ones == 0 && onesFormat.substr(-1,1) == '#') || forcedToZero) {
323 + if (!(ones == 0 && onesFormat.substr(onesFormat.length - 1) == '#') ||
forcedToZero) {
Original comment by apar...@gmail.com
on 13 Apr 2011 at 3:48
Original issue reported on code.google.com by
nuyensg...@gmail.com
on 11 Jan 2011 at 8:56