Skip to content

Conversation

@natecook1000
Copy link
Member

Cherry pick of #744 for swift/main branch.

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 changed the base branch from main to swift/main June 9, 2024 19:11
@natecook1000
Copy link
Member Author

@swift-ci Please test

@natecook1000
Copy link
Member Author

@swift-ci Please test

@natecook1000
Copy link
Member Author

@swift-ci Please test Windows platform

@natecook1000 natecook1000 merged commit 2e8d955 into swift/main Jul 11, 2024
@natecook1000 natecook1000 deleted the swiftmain_word-boundary-subject-bounds branch July 11, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants