Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport 74599 to 7.0 #75365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Backport 74599 to 7.0 #75365
Changes from 1 commit
12d93546157b3d3d7d0870f2546fd8866dc8baff7dceef11f02789c356e2dc0cad2af2d4b85cadc98f58a9699957ea346d7ab10ff68aebc108fdcb70ec29b6238c048f908dbc195178b1af9cfdd9c170039d767ac7cab4337193fd3c73d4d7d8ae61e9070dd2b52df85477d65d8f8be9e897e88a2e91258196f9ab3ef656eb93e5dbc7a7159cdad854823884f8d4c9b9c523f837ddbef754014ee32d538de3cd2055594df2b9aacb0bc5fa8ef077d0d8e8436e69c9d0d42d9fe0df231c9272ca35ddbb7c40dc05712cc3d47193b90abc9acd516f0614965a2435e86f95c7741afdd9a861356e44430c42a13876e9b211223d8cc63f949340cdc12d535736b6e52e41ee7fac450f0dbf376df3ae57b1accef170c1a71b27a50969048e4867411a5c7ee66173b4621ad662324d0206e3761222d4da3f9a51a5c9432e2c5d001dc242e9fbed739df85dc101708fefc2c2ae1303204105d76c06aceb7edb723458c59379c875792fc5cc9211930dfe99c44099304fbdb78f4dff9c906fa754e5b15f276f3db06824c902c027fa8b705274370a238db22ec5c37531f65051a0d1a7184a0cc4ea90f71375408b216309bdc608da959ce88fc6d10e4ced775e2eb5d3f9734f981e5d87924a03353519c93d0604798d70efc88b6997ff694726d2e39618b5185a583bc4936c60aace7e8643cb7fe72912eb21e97604b8fed32b617f4fff921f685f02e8b78f82b518be54b69e5919b505649dda765e56d52d340e3fab357f026623792982b881fd3d9256d336094f686c269ddb97b83539ca20c82ff85d370f8b61285d71eeb3db9d1722dc6912fae71b0090857b81eb4f88912e23913806a141484acf0dd2d18ff878bb1983291c470File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
* Stop coalescing some adjacent Regex atomic loops We walk concatenations in order to combine adjacent loops, e.g. `a+a+a+` becomes `a{3,}`. We also combine loops with individual items that are compatible, e.g. `a+ab` becomes `a{2,}b`. However, we're doing these operations on atomic loops as well, which is sometimes wrong. Since an atomic loop consumes as much as possible and never gives anything back, combining it with a subsequent loop will end up essentially ignoring any minimum specified in the latter loop. We thus can't combine atomic loops if the second loop has a minimum; this includes the case where the second "loop" is just an individual item. * Fix auto-atomicity handling of \w and \b We currently consider \w and \b non-overlapping, which allows a \w loop followed by a \b to be made atomic. The problem with this is that \b is zero-width, and it could be followed by something that does overlap with the \w. When matching at a location that is a word boundary, it is possible the first loop could give up something that matches the subsequent construct, and thus it can't be made atomic. (We could probably restrict this further to still allow atomicity when the first loop has a non-0 lower bound, but it doesn't appear to be worth the complication.) * Add a few more tests Co-authored-by: Stephen Toub <[email protected]>Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.