Skip to content

Commit 04cc410

Browse files
committed
修复标题带换行符问题
1 parent 18f32c9 commit 04cc410

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎build/compile.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ function CreateDatajs(dt_path,callback){
266266
var title = str.match(/[^===]+(?=[===])/g);
267267

268268
title = title[0]?title[0].replace(/\n/g,''):title[0];
269+
title = title.replace(/\r/,'')
269270
// 命令名称
270271
json["n"] = title;
271272
// 命令路径

0 commit comments

Comments
 (0)