We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2460342 commit 34a36dbCopy full SHA for 34a36db
1 file changed
server.js
@@ -41,7 +41,7 @@ const statics = chokidar.watch(path.join(__dirname, 'static'), opts)
41
// Gets the locale name by path.
42
function getLocale (filePath) {
43
const pre = path.join(__dirname, 'locale')
44
- return filePath.slice(pre.length + 1, filePath.indexOf('/', pre.length + 1))
+ return filePath.slice(pre.length + 1, filePath.indexOf(path.sep, pre.length + 1))
45
}
46
47
build.getSource((err, source) => {
0 commit comments