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

Non-ASCII characters as path parameters #206

Open
ghost opened this issue Dec 22, 2020 · 0 comments
Open

Non-ASCII characters as path parameters #206

ghost opened this issue Dec 22, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 22, 2020

Bidi supports matching non-ascii characters in path patterns, but does bidi support non-ascii as path parameters?

(def routes
  ["/" [["Йцукен" [["" :just_qwerty]
                   [["/" :id] :qwerty_and_more]]]]])

(bidi/match-route routes "/Йцукен")
;; => {:handler :just_qwerty}

(bidi/match-route routes "/Йцукен/And_more")
;; => {:route-params {:id "And_more"}, :handler :qwerty_and_more}

(bidi/match-route routes "/Йцукен/Не_работает")
;; => nil
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

No branches or pull requests

0 participants