We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d63523 commit a63c901Copy full SHA for a63c901
Sources/FoundationInternationalization/Formatting/Date/ICUDateFormatter.swift
@@ -580,7 +580,8 @@ extension String {
580
///
581
/// E.g.: `"'hello, it''s 'hh':'mm"` is turned into `"hhmm"`.
582
fileprivate func purgingStringLiterals() -> String {
583
- self.split(separator: "'", omittingEmptySubsequences: false)
+ // Explicitly specify Character("'") to avoid accidentally using an implicit RegexBuilder overload
584
+ self.split(separator: Character("'"), omittingEmptySubsequences: false)
585
.enumerated()
586
.filter { offset, _ in offset.isMultiple(of: 2) }
587
.map(\.element)
0 commit comments