From 9fd6464a746187faad61b92bafcf98410f6f88d3 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Sat, 2 Aug 2014 20:44:37 +0200 Subject: [PATCH] Updates js.high usage for line ending dots. Refs #1291 and #1292. --- web/babelpkglist.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/babelpkglist.nim b/web/babelpkglist.nim index 8745c9f997..8de6047efc 100644 --- a/web/babelpkglist.nim +++ b/web/babelpkglist.nim @@ -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[ 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: