File talk:WMF Tech Talk 2013-02-28 slides - Scribunto presentation.pdf
Jump to navigation
Jump to search
Errata?
[edit]on p.2, the third function (for truncating strings) is listed as "padleft" -- Grolltech (talk) 23:34, 16 April 2013 (UTC)
- That's not an error. Padding the empty string to length n with a string longer than n characters will wind up returning just the first n characters of the string. {{padleft:|5|abcdefghij}} → abcde. Anomie (talk) 12:55, 17 April 2013 (UTC)
- Oh, I see. Yikes. Grolltech (talk) 17:13, 20 April 2013 (UTC)