Add dot as legal char in profile title

Fixes #22
This commit is contained in:
Davide De Rosa 2018-11-02 10:11:52 +01:00
parent 35882e24d2
commit a0ff420f54
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased ## Unreleased
### Added
- Dot as a legal character in host profile title. [#22](https://github.com/keeshux/passepartout-ios/issues/22)
### Fixed ### Fixed
- Incorrect compression warnings when importing host configurations. [#20](https://github.com/keeshux/passepartout-ios/pull/20) - Incorrect compression warnings when importing host configurations. [#20](https://github.com/keeshux/passepartout-ios/pull/20)

View File

@ -206,7 +206,7 @@ extension CharacterSet {
static let filename: CharacterSet = { static let filename: CharacterSet = {
var chars: CharacterSet = .decimalDigits var chars: CharacterSet = .decimalDigits
let english = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" let english = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
let symbols = "-_" let symbols = "-_."
chars.formUnion(CharacterSet(charactersIn: english)) chars.formUnion(CharacterSet(charactersIn: english))
chars.formUnion(CharacterSet(charactersIn: english.lowercased())) chars.formUnion(CharacterSet(charactersIn: english.lowercased()))
chars.formUnion(CharacterSet(charactersIn: symbols)) chars.formUnion(CharacterSet(charactersIn: symbols))