Skip to content

Non-ASCII characters as path parameters #206

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions