Updates js.high usage for line ending dots. Refs #1291 and #1292.

This commit is contained in:
Grzegorz Adam Hankiewicz
2014-08-02 20:44:37 +02:00
parent 6a63771237
commit 9fd6464a74

View File

@@ -38,8 +38,7 @@ proc processContent(content: string) =
else: pkg["url"].str
let
desc = pkg["description"].str
# Review array index access when #1291 is solved.
dot = if desc.high > 0 and desc[<desc.high] in endings: "" else: "."
dot = if desc.high > 0 and desc[desc.high] in endings: "" else: "."
listItem = li(a(href=pkgWeb, pkg["name"].str), " ", desc & dot)
if pkg["url"].str.startsWith("git://github.com/nimrod-code") or
"official" in pkg["tags"].elems: