Skip to content

Commit

Permalink
Native feature
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed Jan 16, 2025
1 parent 9ea6b5d commit dee93ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions util/harman.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ export async function sdksList(userAgent) {
}
const [, version] = m;
const name = format.replaceAll('%version%', version);
const source = new URL(link, releaseNotesBase).href;
const file = decodeURI(source.split(/[#?]/)[0].split('/').pop());
const url = new URL(link, releaseNotesBase);
const source = url.href;
const file = decodeURIComponent(url.pathname.split('/').pop());
r.push({
name,
version,
Expand Down

0 comments on commit dee93ba

Please sign in to comment.