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 {
16371637 public func contains< T : StringProtocol > ( _ other: T ) -> Bool {
16381638 let r = self . range ( of: other) != nil
16391639 if #available( macOS 10 . 10 , iOS 8 . 0 , * ) {
1640- _sanityCheck ( r == _ns. contains ( other. _ephemeralString) )
1640+ assert ( r == _ns. contains ( other. _ephemeralString) )
16411641 }
16421642 return r
16431643 }
@@ -1660,7 +1660,7 @@ extension StringProtocol where Index == String.Index {
16601660 of: other, options: . caseInsensitive, locale: Locale . current
16611661 ) != nil
16621662 if #available( macOS 10 . 10 , iOS 8 . 0 , * ) {
1663- _sanityCheck ( r ==
1663+ assert ( r ==
16641664 _ns. localizedCaseInsensitiveContains ( other. _ephemeralString) )
16651665 }
16661666 return r
You can’t perform that action at this time.
0 commit comments