From 7e32c8135800adb49ba4c2831989141f141896b1 Mon Sep 17 00:00:00 2001 From: Nycto Date: Thu, 23 Apr 2015 19:47:10 -0700 Subject: [PATCH] Fix deprecated negative index warning --- forum.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum.nim b/forum.nim index 6a70b51..3eff43d 100644 --- a/forum.nim +++ b/forum.nim @@ -1098,7 +1098,7 @@ routes: else: let basePath = if path[path.high] == '/': path & "index" - elif path.endsWith(".html"): path[-5 .. -1] + elif path.endsWith(".html"): path[^5 .. ^1] else: path if existsFile(basePath & ".html"): page = readFile(basePath & ".html")