This is an archive of the discontinued Mercurial Phabricator instance.

rust-regex: fix shortcut for exact matches
ClosedPublic

Authored by Alphare on Jun 7 2019, 5:50 AM.

Details

Summary

The current shortcut for rootglobs that can be simplified to exact matches
does not work, it instead treats the pattern as a regex, which is not the
same thing.
This changes fixes the behavior and introduces a test for this behavior.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Alphare created this revision.Jun 7 2019, 5:50 AM
kevincox accepted this revision.Jun 10 2019, 9:14 AM
This revision was automatically updated to reflect the committed changes.