aboutsummaryrefslogtreecommitdiff
path: root/format-common/src/main/kotlin
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-07-19 16:31:37 +0530
committerGitHub <noreply@github.com>2021-07-19 16:31:37 +0530
commit392ad847bf522e2d3246e4fb62d4015b8c4b1d92 (patch)
tree479dddffd13e82a807f8769bab98e59c70ddeacf /format-common/src/main/kotlin
parent921e9f96b9bec5e2bf8633947792d6991956507f (diff)
Cleanup and fix CI tests (#1464)
Diffstat (limited to 'format-common/src/main/kotlin')
-rw-r--r--format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt b/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
index 0e8f6d2e..5a2b59ad 100644
--- a/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
+++ b/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
@@ -122,8 +122,7 @@ constructor(
foundUsername = true
false
}
- line.startsWith("otpauth://", ignoreCase = true) ||
- line.startsWith("totp:", ignoreCase = true) -> {
+ TotpFinder.TOTP_FIELDS.any { prefix -> line.startsWith(prefix, ignoreCase = true) } -> {
false
}
else -> {