From 90dc3329d1973fda691e357cf4523d5c7c67fa1d Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期二, 11 三月 2025 12:23:53 +0800 Subject: [PATCH] fix bug --- Pods/SwifterSwift/Sources/SwifterSwift/Foundation/NSAttributedStringExtensions.swift | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pods/SwifterSwift/Sources/SwifterSwift/Foundation/NSAttributedStringExtensions.swift b/Pods/SwifterSwift/Sources/SwifterSwift/Foundation/NSAttributedStringExtensions.swift index 0170479..191d2f4 100644 --- a/Pods/SwifterSwift/Sources/SwifterSwift/Foundation/NSAttributedStringExtensions.swift +++ b/Pods/SwifterSwift/Sources/SwifterSwift/Foundation/NSAttributedStringExtensions.swift @@ -127,8 +127,8 @@ /// - attributes: Dictionary of attributes. /// - target: a subsequence string for the attributes to be applied to. /// - Returns: An NSAttributedString with attributes applied on the target string. - func applying<T: StringProtocol>(attributes: [Key: Any], - toOccurrencesOf target: T) -> NSAttributedString { + func applying(attributes: [Key: Any], + toOccurrencesOf target: some StringProtocol) -> NSAttributedString { let pattern = "\\Q\(target)\\E" return applying(attributes: attributes, toRangesMatching: pattern) -- Gitblit v1.7.1