mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Save mode as registration mode
This commit is contained in:
@@ -187,7 +187,7 @@ class EntryInfo : NodeInfo {
|
||||
/**
|
||||
* Add searchInfo to current EntryInfo
|
||||
*/
|
||||
fun saveSearchInfo(database: Database?, searchInfo: SearchInfo) {
|
||||
private fun saveSearchInfo(database: Database?, searchInfo: SearchInfo) {
|
||||
searchInfo.otpString?.let { otpString ->
|
||||
setOtp(otpString)
|
||||
} ?: searchInfo.webDomain?.let { webDomain ->
|
||||
|
||||
@@ -158,6 +158,10 @@ class SearchInfo : ObjectNameResource, Parcelable {
|
||||
return otpString ?: webDomain ?: applicationId ?: relyingParty ?: tag ?: ""
|
||||
}
|
||||
|
||||
fun toRegisterInfo(): RegisterInfo {
|
||||
return RegisterInfo(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
// https://gist.github.com/rishabhmhjn/8663966
|
||||
const val APPLICATION_ID_REGEX = "^(?:[a-zA-Z]+(?:\\d*[a-zA-Z_]*)*)(?:\\.[a-zA-Z]+(?:\\d*[a-zA-Z_]*)*)+\$"
|
||||
|
||||
Reference in New Issue
Block a user