Skip to content

Instantly share code, notes, and snippets.

@watr
Created November 21, 2016 08:46
Show Gist options
  • Save watr/5989922b55a221ee569cc0092b9d83b7 to your computer and use it in GitHub Desktop.
Save watr/5989922b55a221ee569cc0092b9d83b7 to your computer and use it in GitHub Desktop.
import Foundation
extension CharacterSet {
static var fileNameAllowed: CharacterSet {
return CharacterSet(charactersIn: "/").inverted
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment