Skip to content
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

Named captures to return their names in-order #97

Merged
merged 4 commits into from
Sep 2, 2024
Merged

Commits on Sep 2, 2024

  1. Configuration menu
    Copy the full SHA
    101df19 View commit details
    Browse the repository at this point in the history
  2. Fix some clippies

    ridiculousfish committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    d558883 View commit details
    Browse the repository at this point in the history
  3. Named captures to return their names in-order

    Prior to this commit, the Match::named_groups() function would return
    names in an arbitrary order, because they were stored in a hash table.
    Switch to returning them in the original specification order from the
    pattern. This allows implementing the JS engine semantics where the
    object key order matches that from the pattern.
    
    Fixes #96
    ridiculousfish committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    96f36dc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1412d9d View commit details
    Browse the repository at this point in the history