Support windows system compilation. #51

This commit is contained in:
jaywcjlove 2018-09-14 22:17:51 +08:00
parent 4a2e116354
commit 5b1641c996
1 changed files with 1 additions and 1 deletions

View File

@ -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) {