Skip to content

Commit

Permalink
fix(wrapper): only show changes in changelog (#2326)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetrax-10 committed May 5, 2023
1 parent 88c8aa8 commit 0b36937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,8 @@ Spicetify.Playbar = (function() {
const res = await fetch("https://api.github.com/repos/spicetify/spicetify-cli/releases/latest");
const { tag_name, html_url, body } = await res.json();
const semver = tag_name.slice(1);
const changelog = [...body.matchAll(/\r\n\*\s(.+?)\sin\shttps/g)]
const changelogRawData = body.match(/## What's Changed([\s\S]*?)\r\n\r/)[1]
const changelog = [...changelogRawData.matchAll(/\r\n\*\s(.+?)\sin\shttps/g)]
.map(match => {
const featureData = match[1].split("@");
const feature = featureData[0];
Expand Down

0 comments on commit 0b36937

Please sign in to comment.