Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable System credential extension on release + translations #3706

Merged
Prev Previous commit
Next Next commit
Updates due to moving to Core
  • Loading branch information
amddg44 committed Dec 10, 2024
commit f35fa0999f8aecc7655797971fc9e773b35fb80f
4 changes: 2 additions & 2 deletions Core/AutofillInterfaceEmailTruncator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

import Foundation

struct AutofillInterfaceEmailTruncator {
static func truncateEmail(_ email: String, maxLength: Int) -> String {
public struct AutofillInterfaceEmailTruncator {
public static func truncateEmail(_ email: String, maxLength: Int) -> String {
let emailComponents = email.components(separatedBy: "@")
if emailComponents.count > 1 && email.count > maxLength {
let ellipsis = "..."
Expand Down
10 changes: 7 additions & 3 deletions Core/PasswordHider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@

import Foundation

struct PasswordHider {
let password: String
var hiddenPassword: String {
public struct PasswordHider {
public let password: String
public var hiddenPassword: String {
let maximumPasswordDisplayCount = 22
let passwordCount = password.count > maximumPasswordDisplayCount ? maximumPasswordDisplayCount : password.count
return String(repeating: "•", count: passwordCount)
}

public init(password: String) {
self.password = password
}
}
Loading