You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation of class method escapedPatternForString() which simply calls
_CFRegularExpressionCreateEscapedPattern(). Also added two test to
TestFoundation/TestNSRegularExpression.swift.
Copy file name to clipboardExpand all lines: Foundation/NSRegularExpression.swift
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,9 @@ public class NSRegularExpression : NSObject, NSCopying, NSCoding {
81
81
82
82
/* This class method will produce a string by adding backslash escapes as necessary to the given string, to escape any characters that would otherwise be treated as pattern metacharacters.
0 commit comments