diff --git a/CHANGELOG.md b/CHANGELOG.md index 036396cb..b3a85a81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Dot as a legal character in host profile title. [#22](https://github.com/keeshux/passepartout-ios/issues/22) + ### Fixed - Incorrect compression warnings when importing host configurations. [#20](https://github.com/keeshux/passepartout-ios/pull/20) diff --git a/Passepartout/Sources/Utils.swift b/Passepartout/Sources/Utils.swift index 89091858..f091988e 100644 --- a/Passepartout/Sources/Utils.swift +++ b/Passepartout/Sources/Utils.swift @@ -206,7 +206,7 @@ extension CharacterSet { static let filename: CharacterSet = { var chars: CharacterSet = .decimalDigits let english = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - let symbols = "-_" + let symbols = "-_." chars.formUnion(CharacterSet(charactersIn: english)) chars.formUnion(CharacterSet(charactersIn: english.lowercased())) chars.formUnion(CharacterSet(charactersIn: symbols))