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

Update Signup #78

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Update Signup #78

wants to merge 4 commits into from

Conversation

ericmargay
Copy link

@ericmargay ericmargay commented Jan 13, 2024

Update Signup #44

@PaulafloresS PaulafloresS mentioned this pull request Jan 14, 2024
Copy link
Member

@3zcurdia 3zcurdia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM[9]

@@ -1,18 +1,104 @@
//
// PlansView.swift
// SwiftUIBasics
// ContentView.swift
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file not required on PR

$password
.receive(on: RunLoop.main)
.map { password in
let pattern = "[!\"#$%&'()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~]+"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let pattern = "[!\"#$%&'()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~]+"
let pattern = "[\\W]+"

Non word regex works better

Comment on lines +114 to +118
Publishers.CombineLatest4($isValidPasswordLowerCase, $isValidPassWordOneSymbol, $isValidPasswordOneNumber, $isValidPre)
.map { (a, b, c, d) in
return a && b && c && d
}
.assign(to: \.isValidPre, on: self)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

circular reference you are evaluating isValidPre and assigning it to the same variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants