Fix deprecated negative index warning

This commit is contained in:
Nycto 2015-04-23 19:47:10 -07:00
commit 7e32c81358

View file

@ -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")