Skip to content

Commit

Permalink
fix: numeric and special characters works with search
Browse files Browse the repository at this point in the history
  • Loading branch information
Usmanfee committed Oct 17, 2024
1 parent 361aea0 commit 7cb4062
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/pages/AppOverview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ export default function AppOverview() {

const doSearch = useCallback(
(expr: string) => {
const validateExpr = /^[ A-Za-z]*$/.test(expr)
const validateExpr =
/^[ A-Za-z0-9!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]*$/.test(expr)
if (!validateExpr) {
return
}
Expand Down

0 comments on commit 7cb4062

Please sign in to comment.