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
Fix #2539: Super Referrer Improvements (Clipboard) #2535
Changes from 1 commit
7101d33
646e5bd
2359577
624dabc
15bfead
6fdb085
8214d99
285fe1e
aaa762e
3ce30ea
16d5037
576ae4a
834a1fc
98253b6
ade056f
17f0717
File filter...
Jump to…
Comment cleanup.
- Loading branch information
| @@ -87,6 +87,8 @@ public class UserReferralProgram { | ||
| Preferences.URP.referralCode.value = refCode | ||
|
This conversation was marked as resolved
by jhreis
jhreis
Author
Contributor
|
||
| } | ||
|
|
||
| // Since ref-code method may not be repeatable (e.g. clipboard was cleared), this should be retrieved from prefs, | ||
| // and not use the passed in referral code. | ||
| service.referralCodeLookup(refCode: UserReferralProgram.getReferralCode(), completion: referralBlock) | ||
| } | ||
|
|
||
| @@ -198,7 +200,7 @@ public class UserReferralProgram { | ||
|
|
||
| // +1 to strip off `:` that proceeds the defined prefix | ||
| input.removeFirst(self.clipboardPrefix.count + 1) | ||
|
This conversation was marked as resolved
by jhreis
kylehickinson
Contributor
|
||
| let valid = input.range(of: #"\b[A-Z]{3}[0-9]{3}\b"#, options: .regularExpression) != nil // true | ||
| let valid = input.range(of: #"\b[A-Z]{3}[0-9]{3}\b"#, options: .regularExpression) != nil | ||
|
|
||
| // Both conditions must be met | ||
| return valid ? input : nil | ||
This pref is not new right? Is this the only place we can set this?