Skip to content

Commit

Permalink
remove dot between svg and number.
Browse files Browse the repository at this point in the history
  • Loading branch information
Doradx committed Apr 19, 2023
1 parent e9378a9 commit 680beca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -236292,7 +236292,7 @@ function defaultCallback(err) {
* @Author: Dorad, [email protected]
* @Date: 2023-04-18 22:07:58 +02:00
* @LastEditors: Dorad, [email protected]
* @LastEditTime: 2023-04-19 15:37:35 +02:00
* @LastEditTime: 2023-04-19 16:10:00 +02:00
* @FilePath: \src\customTransformer.js
* @Description:
*
Expand Down Expand Up @@ -236423,7 +236423,7 @@ async function link_preview_github(url) {
else if (info.state === "open") data.state_icon = STATE_SVG.issue.opened;
else if (info.state === "closed") data.state_icon = STATE_SVG.issue.closed;
}
if (data.state_icon) data.state_icon = `${data.state_icon}<span style="margin-left:3px;margin-right:3px">•</span>#${info.number}<span style="margin-left:3px;margin-right:3px">•</span>`;
if (data.state_icon) data.state_icon = `${data.state_icon} #${info.number}<span style="margin-left:3px;margin-right:3px">•</span>`;
// type: path[2], state: from info.state
data.title = info.title + " " + (data.state_icon ? data.state_icon : "") + capitalizeFirstLetter(info.state); // 图标, 状态
data.avatar = info.user.avatar_url;
Expand Down
4 changes: 2 additions & 2 deletions src/customTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: Dorad, [email protected]
* @Date: 2023-04-18 22:07:58 +02:00
* @LastEditors: Dorad, [email protected]
* @LastEditTime: 2023-04-19 15:37:35 +02:00
* @LastEditTime: 2023-04-19 16:10:00 +02:00
* @FilePath: \src\customTransformer.js
* @Description:
*
Expand Down Expand Up @@ -133,7 +133,7 @@ async function link_preview_github(url) {
else if (info.state === "open") data.state_icon = STATE_SVG.issue.opened;
else if (info.state === "closed") data.state_icon = STATE_SVG.issue.closed;
}
if (data.state_icon) data.state_icon = `${data.state_icon}<span style="margin-left:3px;margin-right:3px">•</span>#${info.number}<span style="margin-left:3px;margin-right:3px">•</span>`;
if (data.state_icon) data.state_icon = `${data.state_icon} #${info.number}<span style="margin-left:3px;margin-right:3px">•</span>`;
// type: path[2], state: from info.state
data.title = info.title + " " + (data.state_icon ? data.state_icon : "") + capitalizeFirstLetter(info.state); // 图标, 状态
data.avatar = info.user.avatar_url;
Expand Down

0 comments on commit 680beca

Please sign in to comment.