Skip to content
Myr

Fixed a typo: "A route is simple a string" => "A route is simply a string"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Darren Torpey · committed by Darren Torpey · parent 6bef3ef · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/guide.html+1 added-1 removed
353 unmodified lines
354 res.send('user ' + req.params.id);355});356</code></pre>357358<p>A route is simple a string which is compiled to a <em>RegExp</em> internally. For example358<p>A route is simply a string which is compiled to a <em>RegExp</em> internally. For example359when <em>/user/:id</em> is compiled, a simplified version of the regexp may look similar to:</p>360361<pre><code>\/user\/([^\/]+)\/?362</code></pre>
1375 unmodified lines