Skip to content

Commit

Permalink
chore: staticServer doc fix (#1618)
Browse files Browse the repository at this point in the history
Fixes invalid regular expression for serveStatic example which was missing a closing `/`
  • Loading branch information
Michael Martin authored and DonutEspresso committed Mar 17, 2018
1 parent 4fa8985 commit e2b96e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_api/plugins.md
Expand Up @@ -534,7 +534,7 @@ _The serveStatic module is different than most of the other plugins, in that
it is expected that you are going to map it to a route, as below:_

```javascript
server.get(/\/docs\/current\/?.*\/, restify.plugins.serveStatic({
server.get(/\/docs\/current\/?.*\//, restify.plugins.serveStatic({
directory: './documentation/v1',
default: 'index.html'
}));
Expand Down

0 comments on commit e2b96e0

Please sign in to comment.