Skip to content

Commit

Permalink
Game-主题搜索功能
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Oct 31, 2024
1 parent 176b66e commit f2545d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions themes/game/components/SideBarContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default function SideBarContent({ allNavPages, siteInfo }) {
const filtered = allGames?.filter(item => {
return (
item.title.toLowerCase().includes(search.toLowerCase()) ||
item.id.toLowerCase().includes(search.toLowerCase()) ||
item.id
.toLowerCase()
item.short_id?.toLowerCase().includes(search.toLowerCase()) ||
item.short_id
?.toLowerCase()
.replace('-', '')
.includes(search.toLowerCase().replace('-', ''))
)
Expand Down

0 comments on commit f2545d6

Please sign in to comment.