Skip to content

Commit 60433fe

Browse files
authored
Lower case package lookups (loic-sharma#366)
1 parent 46acdaa commit 60433fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BaGet.UI/src/DisplayPackage/DisplayPackage.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class DisplayPackage extends React.Component<IDisplayPackageProps, IDisplayPacka
7474
this.registrationController = new AbortController();
7575
this.readmeController = new AbortController();
7676

77-
this.id = props.match.params.id;
77+
this.id = props.match.params.id.toLowerCase();
7878
this.version = props.match.params.version;
7979
this.state = {package: undefined};
8080
}
@@ -94,7 +94,7 @@ class DisplayPackage extends React.Component<IDisplayPackageProps, IDisplayPacka
9494
this.registrationController = new AbortController();
9595
this.readmeController = new AbortController();
9696

97-
this.id = this.props.match.params.id;
97+
this.id = this.props.match.params.id.toLowerCase();
9898
this.version = this.props.match.params.version;
9999
this.setState({package: undefined});
100100
this.componentDidMount();

0 commit comments

Comments
 (0)