Commit 2065371c by liyaoting

V1.04

过滤注释
1 parent fab90904
......@@ -199,6 +199,10 @@
if (!row) {
return;
}
//过滤可能是注释的行
if (escape(row).indexOf("%u") !== -1 || item.indexOf("sh") === -1) {
return;
}
let isOpen = !!(row && !row.startsWith("//"));
if (!isOpen) {
row = this.dealStr(row);
......@@ -220,6 +224,10 @@
buildRowNo = imageBuildStart + index;
let trimItem = item.trim();
if (item.indexOf("sleep") === -1 && trimItem) {
//过滤可能是注释的行
if (escape(trimItem).indexOf("%u") !== -1 || item.indexOf(".sh") === -1) {
return;
}
let serviceName = item.split(".sh ")[1].split(" ")[0];
let service = serviceMap[serviceName];
if (!service) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!