Fix suffixes.
This commit is contained in:
parent
5f467440f9
commit
5299cbf50b
@ -32,7 +32,10 @@ MarkNewIPs =
|
||||
MarkNewIPs.postIDs = postIDs
|
||||
|
||||
markNew: (post, ipCount) ->
|
||||
suffix = switch ipCount
|
||||
suffix = if (ipCount // 10) % 10 is 1
|
||||
'th'
|
||||
else
|
||||
switch ipCount % 10
|
||||
when 1 then 'st'
|
||||
when 2 then 'nd'
|
||||
when 3 then 'rd'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user