espada-edalex

Results 3 comments of espada-edalex

Pretty sure this should work, but now it's throwing an error that it doesn't know the type of `useId` ```javascript const useId = "useId" in React ? React.useId : (()...

After posting that I found this stack overflow post - https://stackoverflow.com/questions/201323/how-can-i-validate-an-email-address-using-a-regular-expression - that has a fully matching regex, but might be a bit extreme for the library ``` (?:[a-z0-9!#$%&'*+\x2f=?^_`\x7b-\x7d~\x2d]+(?:\.[a-z0-9!#$%&'*+\x2f=?^_`\x7b-\x7d~\x2d]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9\x2d]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9\x2d]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9\x2d]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) ```

Ah, cool. I wonder if the regular `email` validator is a bit too loose. This was just a "normal" email address of `[email protected]`, but their surname has an apostrophe in...