Skip to content

Commit

Permalink
feat: project name should be case insensitive (#1472)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinshine committed Jul 22, 2023
1 parent 9cd7f6e commit 76adec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -462,7 +462,7 @@ public Project findByPath(String path) {
public Project findByServiceDeskName(String serviceDeskName) {
Long projectId = null;
for (ProjectFacade facade : cache.values()) {
if (serviceDeskName.equals(facade.getServiceDeskName())) {
if (serviceDeskName.equalsIgnoreCase(facade.getServiceDeskName())) {
projectId = facade.getId();
break;
}
Expand Down
Expand Up @@ -78,7 +78,7 @@ public Long findId(String path) {
@Nullable
public ProjectFacade find(String path) {
for (ProjectFacade project: values()) {
if (project.getPath().equals(path))
if (project.getPath().equalsIgnoreCase(path))
return project;
}
return null;
Expand Down

0 comments on commit 76adec6

Please sign in to comment.