📜  允许的文件名字符 swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.049000             🧑  作者: Mango

代码示例1
extension String {
    func convertToValidFileName() -> String {
        let invalidFileNameCharactersRegex = "[^a-zA-Z0-9_]+"
        let fullRange = startIndex..