mirror of
https://github.com/bolucat/Archive.git
synced 2025-09-27 04:30:12 +08:00
16 lines
289 B
Swift
16 lines
289 B
Swift
//
|
|
// 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) ?? ""
|
|
}
|
|
}
|