File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Cosmos-IOS/Cosmostation/Cosmostation Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ class StarNameListViewController: BaseViewController {
55
55
56
56
extension WUtils {
57
57
static func isStarnameValidStarName( _ starname: String ) -> Bool {
58
- let starNameRegEx = " [0-9a-z.-]{0,64}+ \\ *[a-z0-9.-]{3 ,16} "
58
+ let starNameRegEx = " [0-9a-z.-]{0,64}+ \\ *[a-z0-9.-]{2 ,16} "
59
59
let starNamePred = NSPredicate ( format: " SELF MATCHES %@ " , starNameRegEx)
60
60
return starNamePred. evaluate ( with: starname)
61
61
}
62
62
63
63
static func isStarnameValidDomain( _ starname: String ) -> Bool {
64
- let starNameRegEx = " [a-z0-9]{4 ,32} "
64
+ let starNameRegEx = " [a-z0-9]{2 ,32} "
65
65
let starNamePred = NSPredicate ( format: " SELF MATCHES %@ " , starNameRegEx)
66
66
return starNamePred. evaluate ( with: starname)
67
67
}
Original file line number Diff line number Diff line change @@ -232,6 +232,11 @@ public struct Params {
232
232
self . band_active_validators = BandOrcleActiveValidators . init ( rawActiveValidators)
233
233
}
234
234
235
+ if let rawStarnameDomains = dictionary ? [ " starname_domains " ] as? Array < String > {
236
+ for rawStarnameDomain in rawStarnameDomains {
237
+ self . starname_domains. append ( rawStarnameDomain)
238
+ }
239
+ }
235
240
236
241
if let rawGovTallying = dictionary ? [ " gov_tallying " ] as? NSDictionary {
237
242
self . gov_tallying = GovTallying . init ( rawGovTallying)
You can’t perform that action at this time.
0 commit comments