mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-29 13:27:46 +00:00
openpgp-ktx: accept emails without a TLD
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
ec7daf895e
commit
2fab258bc0
@ -3,6 +3,7 @@
|
|||||||
### [Unreleased]
|
### [Unreleased]
|
||||||
|
|
||||||
- The library now requires Kotlin 1.5.0 configured with `kotlinOptions.languageVersion = "1.5"`.
|
- The library now requires Kotlin 1.5.0 configured with `kotlinOptions.languageVersion = "1.5"`.
|
||||||
|
- Accept emails without a TLD
|
||||||
|
|
||||||
### [3.0.0] - 2021-04-10
|
### [3.0.0] - 2021-04-10
|
||||||
- Relicence under Apache 2.0
|
- Relicence under Apache 2.0
|
||||||
|
@ -20,7 +20,7 @@ public object OpenPgpUtils {
|
|||||||
Pattern.DOTALL
|
Pattern.DOTALL
|
||||||
)
|
)
|
||||||
private val USER_ID_PATTERN = Pattern.compile("^(.*?)(?: \\((.*)\\))?(?: <(.*)>)?$")
|
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_NO_PGP: Int = -1
|
||||||
public const val PARSE_RESULT_MESSAGE: Int = 0
|
public const val PARSE_RESULT_MESSAGE: Int = 0
|
||||||
public const val PARSE_RESULT_SIGNED_MESSAGE: Int = 1
|
public const val PARSE_RESULT_SIGNED_MESSAGE: Int = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user