Skip to content

Commit

Permalink
fix search word
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwmt committed Oct 4, 2023
1 parent bd317f3 commit 884069d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/ironman/ironman-store.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class IronmanStoreService {
return list.filter((d: IronmanListInfo) => {
return d.category
.toLocaleLowerCase()
.includes(category.toLocaleLowerCase());
.includes(decodeURI(category.toLocaleLowerCase()));
});
})
);
Expand All @@ -89,7 +89,7 @@ export class IronmanStoreService {
return list.filter((d: IronmanListInfo) => {
return d.topic
.toLocaleLowerCase()
.includes(val.toLocaleLowerCase());
.includes(decodeURI(val.toLocaleLowerCase()));
});
})
);
Expand All @@ -105,10 +105,13 @@ export class IronmanStoreService {
return this.filterNthObservable('').pipe(
tap(() => this.isLoading$.next(true)),
map((list: any) => {

console.log('author', decodeURI(author.toLocaleLowerCase()))

return list.filter((d: IronmanListInfo) => {
return d.author
.toLocaleLowerCase()
.includes(author.toLocaleLowerCase());
.includes(decodeURI(author.toLocaleLowerCase()));
});
})
).subscribe(res => {
Expand Down

0 comments on commit 884069d

Please sign in to comment.