Skip to content

Commit bf51c9f

Browse files
authored
Fix name and author not replacing spaces with hyphens
1 parent bfc61be commit bf51c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function parsePackageJson(fileContent: string, repo: string): ExtPackageInfo {
5252
const json: RawPackageJson = JSON.parse(fileContent);
5353

5454
return {
55-
id: `${json.author.toLowerCase()}.${json.name.toLowerCase()}`,
55+
id: `${json.author.toLowerCase().replace(' ', '-')}.${json.name.toLowerCase().replace(' ', '-')}`,
5656
author: json.author,
5757
description: json.description || '',
5858
title: json.displayName || json.name,
@@ -175,4 +175,4 @@ async function update() {
175175
console.log(`Saved info for ${parsedRepos.length} repos`);
176176
}
177177

178-
update();
178+
update();

0 commit comments

Comments
 (0)