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
commit 9fd6464a74

View file

@ -38,8 +38,7 @@ proc processContent(content: string) =
else: pkg["url"].str else: pkg["url"].str
let let
desc = pkg["description"].str 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) listItem = li(a(href=pkgWeb, pkg["name"].str), " ", desc & dot)
if pkg["url"].str.startsWith("git://github.com/nimrod-code") or if pkg["url"].str.startsWith("git://github.com/nimrod-code") or
"official" in pkg["tags"].elems: "official" in pkg["tags"].elems: