We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c7135b commit 5c9601dCopy full SHA for 5c9601d
src/lib/seam/connect/auth.ts
@@ -269,5 +269,8 @@ export const warnOnInsecureuserIdentifierKey = (
269
}
270
271
// SOURCE: https://stackoverflow.com/a/46181
272
-const isEmail = (value: string): boolean =>
273
- /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)
+const isEmail = (value: string): boolean => {
+ if (value.includes('!')) return false
274
+ // The regex may run slow on strings starting with '!@!.' and with many repetitions of '!.'.
275
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value)
276
+}
0 commit comments