Skip to content

Commit

Permalink
Update regex-validation.ts
Browse files Browse the repository at this point in the history
Fix email regex
  • Loading branch information
Christian Abele authored May 29, 2024
1 parent 67347d8 commit 4c3a9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/docs/content/components/input/regex-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const App = `import {Input} from "@nextui-org/react";
export default function App() {
const [value, setValue] = React.useState("junior2nextui.org");
const validateEmail = (value) => value.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i);
const validateEmail = (value) => value.match(/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i);
const isInvalid = React.useMemo(() => {
if (value === "") return false;
Expand Down

0 comments on commit 4c3a9e2

Please sign in to comment.