Skip to content

Commit

Permalink
fix replace
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidas03 committed Apr 29, 2024
1 parent 3491305 commit 91652dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pagebody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async function filterData(searchParams: { query?: string; filters?: string }) {
.join(") AND (");
}

filterString.replace(/\W/g, '')
filterString.replaceAll(/\W/g, ' ')
const query = `SELECT FIRST_NAME, LAST_NAME, GRAD_YEAR, DORM, DORM_ROOM, \
USER_ID FROM student_data WHERE (${filterString})`;

Expand Down

0 comments on commit 91652dc

Please sign in to comment.