From 776d69aa4ed7e42a2341262bc18ff3a25dbb4db5 Mon Sep 17 00:00:00 2001 From: Alex Martini Date: Fri, 18 Nov 2022 13:17:23 -0800 Subject: [PATCH] Fix abstract for Regex.dotMatchesNewlines(_:). The old version looks like it was accidentally duplicated from anchorsMatchLineEndings(_:) just below it. --- Sources/_StringProcessing/Regex/Options.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/_StringProcessing/Regex/Options.swift b/Sources/_StringProcessing/Regex/Options.swift index 88d2dbf5d..368a5b634 100644 --- a/Sources/_StringProcessing/Regex/Options.swift +++ b/Sources/_StringProcessing/Regex/Options.swift @@ -68,8 +68,8 @@ extension Regex { wrapInOption(.unicodeWordBoundaries, addingIf: wordBoundaryKind == .default) } - /// Returns a regular expression where the start and end of input - /// anchors (`^` and `$`) also match against the start and end of a line. + /// Returns a regular expression where the "any" metacharacter (`.`) + /// also matches against the start and end of a line. /// /// - Parameter dotMatchesNewlines: A Boolean value indicating whether `.` /// should match a newline character.