Skip to content

Commit 3dcb444

Browse files
committed
Login completed
1 parent eb5e8d8 commit 3dcb444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/lightningkite/kotlin/text/String.ext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package com.lightningkite.kotlin.text
66
*/
77

88

9-
val EmailRegularExpression: Regex = "[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}".toRegex(RegexOption.IGNORE_CASE)
9+
val EmailRegularExpression: Regex = "[a-z0-9!#\$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#\$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?".toRegex(RegexOption.IGNORE_CASE)
1010

1111
inline fun String.isEmail(): Boolean {
1212
return matches(EmailRegularExpression)

0 commit comments

Comments
 (0)