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

Fix path matching logic #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix path matching logic #1

wants to merge 2 commits into from

Conversation

s2mr
Copy link

@s2mr s2mr commented Jul 24, 2024

既存のMatchaのマッチングロジックは、patternとして渡したもののPathのコンポーネント数が一致していないとマッチできないので、マッチできるように修正。
テストも通っていることを確認

e.g.)
urlのpathが/my/something/path だったときに、 /my/{parameter} のpatternで something/path を取得できるように。

s2mr added 2 commits March 20, 2023 13:24
1. Introduced support for dynamic URL pattern matching using parameters enclosed in `{}`.
2. Updated `Matcha` initializer to parse patterns and extract parameter values from matched URLs.
3. Enhanced test cases to validate the new parameterized matching functionality.
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.

3 participants