From 2fab258bc0308b788cfeaa9799537d3ffd6d149b Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 2 May 2021 11:06:30 +0530 Subject: openpgp-ktx: accept emails without a TLD Signed-off-by: Harsh Shandilya --- openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/util/OpenPgpUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp-ktx/src/main') diff --git a/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/util/OpenPgpUtils.kt b/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/util/OpenPgpUtils.kt index feadb266..ca7e3d3d 100644 --- a/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/util/OpenPgpUtils.kt +++ b/openpgp-ktx/src/main/java/me/msfjarvis/openpgpktx/util/OpenPgpUtils.kt @@ -20,7 +20,7 @@ public object OpenPgpUtils { Pattern.DOTALL ) private val USER_ID_PATTERN = Pattern.compile("^(.*?)(?: \\((.*)\\))?(?: <(.*)>)?$") - private val EMAIL_PATTERN = Pattern.compile("^\"]*@[^<>\"]*\\.[^<>\"]*)\"?>?$") + private val EMAIL_PATTERN = Pattern.compile("^\"]*@[^<>\"]*[.]?[^<>\"]*)\"?>?$") public const val PARSE_RESULT_NO_PGP: Int = -1 public const val PARSE_RESULT_MESSAGE: Int = 0 public const val PARSE_RESULT_SIGNED_MESSAGE: Int = 1 -- cgit v1.2.3