Skip to content

Commit

Permalink
Merge pull request #80 from theappbusiness/fix/fix-characterset-addit…
Browse files Browse the repository at this point in the history
…ions-group-and-target

fix to group and target
  • Loading branch information
samdods authored Mar 18, 2019
2 parents 46e1889 + 5ddb22e commit 6bd587c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 19 deletions.
38 changes: 38 additions & 0 deletions Sources/TABResourceLoader/Extensions/CharacterSet+Additions.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//
// CharacterSet+Additions.swift
// TABResourceLoader
//
// Created by Marco Guerrieri on 14/03/2019.
//
// The MIT License (MIT)
//
// Copyright (c) 2016 Luciano Marisi
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import Foundation

public extension CharacterSet {
public static var improvedUrlQueryAllowed: CharacterSet {
var characterSet = CharacterSet.urlQueryAllowed
characterSet.remove("&")
characterSet.remove("=")
return characterSet
}
}
2 changes: 1 addition & 1 deletion TABResourceLoader.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@
4F079D381D8458A000D08DA0 /* Extensions */ = {
isa = PBXGroup;
children = (
90B62B47223A5F6C00640CE9 /* CharacterSet+Additions.swift */,
4F079D361D84585E00D08DA0 /* NSThread+Additions.swift */,
);
path = Extensions;
Expand Down Expand Up @@ -356,7 +357,6 @@
4F4BE52B1ECB415500C2CC56 /* String+Error.swift */,
EA1EE0D41F881CF000902527 /* String+Additions.swift */,
4FF581741F051F23008D0A20 /* Result+Additions.swift */,
90B62B47223A5F6C00640CE9 /* CharacterSet+Additions.swift */,
);
path = Helpers;
sourceTree = "<group>";
Expand Down
18 changes: 0 additions & 18 deletions Tests/TABResourceLoaderTests/Helpers/CharacterSet+Additions.swift

This file was deleted.

0 comments on commit 6bd587c

Please sign in to comment.