Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
uppercase fixed #56
Browse files Browse the repository at this point in the history
  • Loading branch information
serayuzgur committed Oct 15, 2019
1 parent e9f4c85 commit 8980dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/github.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ suite("GithubAPI Tests", function() {
assert.equal(decidePath("weldmock"), "we/ld/weldmock");
assert.equal(decidePath("e2fslibs-sys"), "e2/fs/e2fslibs-sys");
assert.equal(decidePath('"e2fslibs-sys"'), "e2/fs/e2fslibs-sys");
assert.equal(decidePath('"Inflector"'), "in/fl/inflector");
});
});
1 change: 1 addition & 0 deletions src/api/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const versions = (name: string) => {
};

export function decidePath(name: string) {
name = name.toLowerCase();
if (name.startsWith('"') && name.endsWith('"')) {
name = name.substring(1, name.length - 1);
}
Expand Down

0 comments on commit 8980dac

Please sign in to comment.