basic-node-server
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -38,3 +38,3 @@ #!/usr/bin/env node | ||
// If filePath is empty or ends with '/', default to 'index.html' | ||
if (!filePath || filePath.endsWith('/')) { | ||
if (!filePath || filePath.endsWith('/') || filePath.endsWith('\\')) { | ||
filePath = path.join(filePath, 'index.html'); | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "basic-node-server", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Basic node server for everyone.", | ||
@@ -5,0 +5,0 @@ "main": "bns.js", |
47544