Fix deprecated negative index warning
This commit is contained in:
parent
b7584de440
commit
7e32c81358
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue