Skip to content

Conversation

@natecook1000
Copy link
Member

A prior change incorrectly treated the start of the searchBounds as an always-valid word boundary, which resulted in a word boundary at the start of a pattern unconditionally matching at the restart point when finding all matches in a string.

This change corrects the usage to recognize word boundaries only at the start of the subjectBounds.

rdar://129417643

A prior change incorrectly treated the start of the `searchBounds` as an always-valid word boundary, which resulted in a word boundary at the start of a pattern unconditionally matching at the restart point when finding all matches in a string. This change corrects the usage to recognize word boundaries only at the start of the `subjectBounds`. rdar://129417643
@natecook1000 natecook1000 requested a review from milseman June 9, 2024 08:44
@natecook1000
Copy link
Member Author

@swift-ci Please test

@natecook1000
Copy link
Member Author

@swift-ci Please test Linux platform

Copy link
Member

@milseman milseman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@natecook1000 natecook1000 merged commit 68e377a into main Jun 9, 2024
@natecook1000 natecook1000 deleted the word-boundary-subject-bounds branch June 9, 2024 19:08
natecook1000 added a commit that referenced this pull request Jun 9, 2024
A prior change incorrectly treated the start of the `searchBounds` as an always-valid word boundary, which resulted in a word boundary at the start of a pattern unconditionally matching at the restart point when finding all matches in a string. This change corrects the usage to recognize word boundaries only at the start of the `subjectBounds`. rdar://129417643
natecook1000 added a commit that referenced this pull request Jun 9, 2024
A prior change incorrectly treated the start of the `searchBounds` as an always-valid word boundary, which resulted in a word boundary at the start of a pattern unconditionally matching at the restart point when finding all matches in a string. This change corrects the usage to recognize word boundaries only at the start of the `subjectBounds`. rdar://129417643
natecook1000 added a commit that referenced this pull request Jul 11, 2024
A prior change incorrectly treated the start of the `searchBounds` as an always-valid word boundary, which resulted in a word boundary at the start of a pattern unconditionally matching at the restart point when finding all matches in a string. This change corrects the usage to recognize word boundaries only at the start of the `subjectBounds`. rdar://129417643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants