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

Can this pattern be supported: /hello** match path: /helloworld #129

Open
1 task
iGeeky opened this issue Aug 24, 2024 · 0 comments
Open
1 task

Can this pattern be supported: /hello** match path: /helloworld #129

iGeeky opened this issue Aug 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@iGeeky
Copy link

iGeeky commented Aug 24, 2024

Describe the feature

Can this pattern be supported: /hello** match path: /helloworld

code demo:

import { createRouter, addRoute, findRoute } from 'rou3'

const router = createRouter()

addRoute(router, 'get', '/**', 1)
addRoute(router, 'get', '/hello**', 2)

// want match the route 2
console.log(findRoute(router, 'get', '/helloworld'))

Additional information

  • Would you be willing to help implement this feature?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant