This commit is contained in:
mrFq1
2023-06-05 23:39:23 +08:00
parent e5860ead2c
commit f488f41f8d
72 changed files with 247 additions and 45 deletions

View File

@@ -0,0 +1,15 @@
//
// String+Encode.swift
// ClashX
//
// Created by yicheng on 2019/12/11.
// Copyright © 2019 west2online. All rights reserved.
//
import Cocoa
extension String {
var encoded: String {
return addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? ""
}
}