@@ -65,7 +65,7 @@ extension RegexComponent {
6565 /// - Parameter wordBoundaryKind: The algorithm to use for determining word boundaries.
6666 /// - Returns: The modified regular expression.
6767 public func wordBoundaryKind( _ wordBoundaryKind: RegexWordBoundaryKind ) -> Regex < RegexOutput > {
68- wrapInOption ( . unicodeWordBoundaries, addingIf: wordBoundaryKind == . unicodeLevel2 )
68+ wrapInOption ( . unicodeWordBoundaries, addingIf: wordBoundaryKind == . default )
6969 }
7070
7171 /// Returns a regular expression where the start and end of input
@@ -83,8 +83,8 @@ extension RegexComponent {
8383 ///
8484 /// This method corresponds to applying the `m` option in regex syntax. For
8585 /// this behavior in the `RegexBuilder` syntax, see
86- /// ``Anchor.startOfLine``, ``Anchor.endOfLine``, ``Anchor.startOfInput ``,
87- /// and ``Anchor.endOfInput ``.
86+ /// ``Anchor.startOfLine``, ``Anchor.endOfLine``, ``Anchor.startOfSubject ``,
87+ /// and ``Anchor.endOfSubject ``.
8888 ///
8989 /// - Parameter matchLineEndings: A Boolean value indicating whether `^` and
9090 /// `$` should match the start and end of lines, respectively.
@@ -205,7 +205,7 @@ public struct RegexWordBoundaryKind: Hashable {
205205 /// that match `/\w\W/` or `/\W\w/`, or between the start or end of the input
206206 /// and a `\w` character. Word boundaries therefore depend on the option-
207207 /// defined behavior of `\w`.
208- public static var unicodeLevel1 : Self {
208+ public static var simple : Self {
209209 . init( base: . unicodeLevel1)
210210 }
211211
@@ -215,7 +215,7 @@ public struct RegexWordBoundaryKind: Hashable {
215215 /// Default word boundaries use a Unicode algorithm that handles some cases
216216 /// better than simple word boundaries, such as words with internal
217217 /// punctuation, changes in script, and Emoji.
218- public static var unicodeLevel2 : Self {
218+ public static var `default` : Self {
219219 . init( base: . unicodeLevel2)
220220 }
221221}
0 commit comments