File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1637,7 +1637,7 @@ extension StringProtocol where Index == String.Index {
1637
1637
public func contains< T : StringProtocol > ( _ other: T ) -> Bool {
1638
1638
let r = self . range ( of: other) != nil
1639
1639
if #available( macOS 10 . 10 , iOS 8 . 0 , * ) {
1640
- _sanityCheck ( r == _ns. contains ( other. _ephemeralString) )
1640
+ assert ( r == _ns. contains ( other. _ephemeralString) )
1641
1641
}
1642
1642
return r
1643
1643
}
@@ -1660,7 +1660,7 @@ extension StringProtocol where Index == String.Index {
1660
1660
of: other, options: . caseInsensitive, locale: Locale . current
1661
1661
) != nil
1662
1662
if #available( macOS 10 . 10 , iOS 8 . 0 , * ) {
1663
- _sanityCheck ( r ==
1663
+ assert ( r ==
1664
1664
_ns. localizedCaseInsensitiveContains ( other. _ephemeralString) )
1665
1665
}
1666
1666
return r
You can’t perform that action at this time.
0 commit comments