Skip to content
Myr

Merge pull request #653 from darrentorpey/patch-1.

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

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

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents 6bef3ef, 31fef40 · 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