瀏覽代碼

Can not use path.parse in version node 0.10

pull/717/head
Justin Staubach 6 年之前
父節點
當前提交
51bd7fd494
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bin/mustache

+ 1
- 1
bin/mustache 查看文件

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

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

function wasNotFound (err) {


Loading…
取消
儲存