File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/AlgoliaSearchClient/Models/Common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ public struct UserToken: StringWrapper, URLEncodable {
1111
1212 public let rawValue : String
1313
14- private let allowedCharacters : CharacterSet = CharacterSet . alphanumerics. union ( . init( charactersIn: " _- " ) )
14+ private let allowedCharacters : CharacterSet = CharacterSet . alphanumerics. union ( . init( charactersIn: " . _-" ) )
1515
1616 public init ( rawValue: String ) {
1717 assert ( !rawValue. isEmpty, " UserToken can't be empty " )
1818 assert ( rawValue. count <= 64 , " UserToken length can't be superior to 64 characters. Input: \( rawValue) " )
1919 let containsOnlyAllowedCharacters = rawValue. trimmingCharacters ( in: allowedCharacters) . isEmpty
20- assert ( containsOnlyAllowedCharacters, " UserToken allows only characters of type [a-zA-Z0-9_-]. Input: \( rawValue) " )
20+ assert ( containsOnlyAllowedCharacters, " UserToken allows only characters of type [a-zA-Z0-9_-. ]. Input: \( rawValue) " )
2121 self . rawValue = rawValue
2222 }
2323
You can’t perform that action at this time.
0 commit comments