Template talk:Str sub old

{{editprotected}} This template is protected in a broken state as it returns characters in the range start − 1 → start + length (which means it actually returns length + 1 characters, ending in the right spot but starting one step early):

  • {{str sub|0123456789ABCDEF|6|3}} == 678

The output "5678" is incorrect as the "5" should not be part of it.

See Comparison of programming languages (string functions)#substring. This does not match the syntax of any known language. Please fix. — CharlotteWebb 03:04, 14 June 2009 (UTC)[reply]

Done. Dragons flight (talk) 03:33, 14 June 2009 (UTC)[reply]
Yes, but did that affect anything? I think it may have. Bob the Wikipedian (talkcontribs) 17:16, 16 June 2009 (UTC)[reply]