Skip to content
Browse files

updated docco docs

  • Loading branch information...
1 parent d5ecff1 commit 856cbe828c60ce3060f9bdaccf3a42fbf1964a3c @kieran committed
Showing with 4 additions and 4 deletions.
  1. +2 −2 docs/key.html
  2. +1 −1 docs/route.html
  3. +1 −1 docs/router.html
View
4 docs/key.html
@@ -80,7 +80,7 @@
<span class="class"><span class="keyword">class</span> <span class="title">Key</span></span>
constructor: ( <span class="property">@name</span>, <span class="property">@optional</span> )-&gt;
- <span class="property">@regex</span> = <span class="regexp">/[\w\-]+/</span> <span class="comment"># default url-friendly regex</span></pre></div></div>
+ <span class="property">@regex</span> = <span class="regexp">/[\w\-\s]+/</span> <span class="comment"># default url-friendly regex</span></pre></div></div>
</li>
@@ -307,7 +307,7 @@
<span class="class"><span class="keyword">class</span> <span class="title">Glob</span> <span class="keyword">extends</span> <span class="title">Key</span></span>
constructor: ( <span class="property">@name</span>, <span class="property">@optional</span> )-&gt;
- <span class="property">@regex</span> = <span class="regexp">/[\w\-\/]+?/</span> <span class="comment"># default url-friendly regex</span></pre></div></div>
+ <span class="property">@regex</span> = <span class="regexp">/[\w\-\/\s]+?/</span> <span class="comment"># default url-friendly regex</span></pre></div></div>
</li>
View
2 docs/route.html
@@ -980,7 +980,7 @@
</div>
<div class="content"><div class='highlight'><pre> url = require(<span class="string">'url'</span>).parse urlParam <span class="comment"># TODO: fix this</span>
- path = url.pathname
+ path = decodeURI url.pathname
params = { method: method }
mixin params, <span class="property">@params</span></pre></div></div>
View
2 docs/router.html
@@ -390,7 +390,7 @@
params = <span class="literal">false</span>
<span class="keyword">for</span> route <span class="keyword">in</span> <span class="property">@routes</span>
- params = route.parse.apply route, arguments
+ params = route.parse.apply path, arguments
<span class="keyword">if</span> params
ret.push params
ret</pre></div></div>

0 comments on commit 856cbe8

Please sign in to comment.
Something went wrong with that request. Please try again.