Skip to content

Commit 58a8b68

Browse files
committed
Debug string checks the subject, not the regex.
1 parent 439b692 commit 58a8b68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/Predicate/Predicate+Description.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ extension PredicateExpressions.Filter : DebugStringConvertiblePredicateExpressio
383383
@available(macOS 15, iOS 18, tvOS 18, watchOS 11, *)
384384
extension PredicateExpressions.StringContainsRegex : DebugStringConvertiblePredicateExpression where Subject : DebugStringConvertiblePredicateExpression, Regex : DebugStringConvertiblePredicateExpression {
385385
package func debugString(state: inout DebugStringConversionState) -> String {
386-
"\(subject.debugString(state: &state)).contains(\(subject.debugString(state: &state)))"
386+
"\(subject.debugString(state: &state)).contains(\(regex.debugString(state: &state)))"
387387
}
388388
}
389389
#endif

0 commit comments

Comments
 (0)