-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Named params exclude . character #259
Comments
This is by design. :) If you'd like to match the . character, use a * <!-- Match "godaddy.com" -->
<Route path="*">
<!-- Match "foo.ap/with/foo.app" -->
<Route path="*/with/*"> Keep in mind that when using multiple *, Does that work? |
@ydnar On second thought, let's just remove the . from that RegExp. It's not terribly useful in URLs. |
@ydnar Wanna do a PR ? :D |
Hah! Whiplash. Will send a PR. |
Done. Randy On Wed, Sep 3, 2014 at 12:15 PM, Michael Jackson notifications@github.com
|
[changed] #259 support dots in named params
Thanks @ydnar! |
In utils/Path.js:28, the regular expression
([^./?#]+)
excludes.
(dot) characters from named params. While the rest (/ ? #
) seem to make sense to exclude from a/
delimited parameterized path, dots can be present in path components. We use dotted params in Domainr, e.g.:Consider dropping the
.
constraint?([^/?#]+)
Possible to monkeypatch this?The text was updated successfully, but these errors were encountered: