Przeglądaj źródła

Can not use path.parse in version node 0.10

pull/717/head
Justin Staubach 6 lat temu
rodzic
commit
51bd7fd494
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      bin/mustache

+ 1
- 1
bin/mustache Wyświetl plik

@@ -131,7 +131,7 @@ function isStdin (view) {
}

function isJson (view) {
return path.parse(view).ext === '.js';
return path.extname(view) === '.js';
}

function wasNotFound (err) {


Ładowanie…
Anuluj
Zapisz