Skip to content

Add match(): most specific partial pattern lookup - #28

Merged
ismailrei merged 1 commit into
masterfrom
partial-match
Nov 3, 2026
Merged

ismailrei merged 1 commit into
masterfrom
partial-match

Conversation

@ismailrei

Copy link
Copy Markdown
Member

Summary

  • match(path) returns { handle, size } for the most specific registered pattern whose keys all appear in path with the same values; the first registered wins a tie.
  • find stays exact.
  • Bump to 2.1.0; Devis 4.1 uses it for partial matching and routing.

Test plan

  • node --test: 13 tests

@ismailrei
ismailrei merged commit 64e44cd into master Nov 3, 2026
3 checks passed
@ismailrei
ismailrei deleted the partial-match branch November 3, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant