Fixed STNDRD #793

Merged
merged 4 commits into from Aug 25, 2014

Projects

None yet

3 participants

@AshleighAdams
Contributor

With the old function, STNDRD(111) would return "st", and not "th" as expected.

It is also ~350% quicker in standard Lua, unsure of LuaJIT.

@willox
Collaborator
willox commented Aug 23, 2014

I pointed out to someone recently that using string.sub (string.Right) here was silly. I like this pull!

@robotboy655 robotboy655 merged commit ce2ecf3 into garrynewman:master Aug 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment