We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 238c5e4 commit 58a0060Copy full SHA for 58a0060
ReactiveTask/Task.swift
@@ -48,8 +48,9 @@ public struct Task {
48
49
extension Task: CustomStringConvertible {
50
public var description: String {
51
+ let whitespaceCharacterSet = NSCharacterSet.whitespaceCharacterSet()
52
let arguments = self.arguments.map { argument -> String in
- if argument.containsString(" ") {
53
+ if argument.rangeOfCharacterFromSet(whitespaceCharacterSet) != nil {
54
return "\"\(argument)\""
55
} else {
56
return argument
0 commit comments