From 5b1641c996892f53ff283caa25621cf20e0bac10 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 14 Sep 2018 22:17:51 +0800 Subject: [PATCH] Support windows system compilation. #51 --- build/compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/compile.js b/build/compile.js index 594a6866c9..82b88692f4 100644 --- a/build/compile.js +++ b/build/compile.js @@ -273,7 +273,7 @@ function CreateDatajs(dt_path,callback){ // 命令名称 json["n"] = title; // 命令路径 - json["p"] = md_path.replace(/\.md$/,'').replace(path_md,''); + json["p"] = md_path.replace(/\.md$/, '').replace(path_md, '').replace(/\\/g, '/'); // 命令描述 var des = str.match(/\n==={1,}([\s\S]*?)##/i); if (!des) {