Skip to content

Commit 5b1641c

Browse files
committed
Support windows system compilation. jaywcjlove#51
1 parent 4a2e116 commit 5b1641c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function CreateDatajs(dt_path,callback){
273273
// 命令名称
274274
json["n"] = title;
275275
// 命令路径
276-
json["p"] = md_path.replace(/\.md$/,'').replace(path_md,'');
276+
json["p"] = md_path.replace(/\.md$/, '').replace(path_md, '').replace(/\\/g, '/');
277277
// 命令描述
278278
var des = str.match(/\n==={1,}([\s\S]*?)##/i);
279279
if (!des) {

0 commit comments

Comments
 (0)