Skip to content

Commit

Permalink
fix(modkit): loon's template
Browse files Browse the repository at this point in the history
Update template.ejs
Update template.ts
  • Loading branch information
VirgilClyne committed Nov 22, 2024
1 parent 2f623bf commit 6be99db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/modkit/plugins/loon/src/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ export class LoonTemplate extends Template {
switch (script.type) {
case 'http-request':
case 'http-response':
line += `${script.type} ${script.pattern},`;
line += `${script.type} ${script.pattern} `;
break;
case 'cron':
line += `${script.type} "${script.cronexp}",`;
line += `${script.type} "${script.cronexp}" `;
break;
case 'generic':
line += `${script.type} `;
Expand Down Expand Up @@ -153,7 +153,7 @@ export class LoonTemplate extends Template {
}
})
.filter(Boolean)
.join(',')
.join(', ')
.trim();
return line;
})
Expand Down
2 changes: 1 addition & 1 deletion packages/modkit/plugins/loon/template.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<% } %>

<% if (loonTemplate.Rule) { %>
[Host]
[Rule]
<%= loonTemplate.Rule %>
<% } %>

Expand Down

0 comments on commit 6be99db

Please sign in to comment.