Skip to content

Commit

Permalink
fix(docz): validate route passed for docs.route()
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Apr 18, 2018
1 parent e7f9cf0 commit 48a0484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docz/src/Doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Doc {
}

public route(path: string): Doc {
this._route = path
this._route = encodeURI(path.replace(/\s/g, ''))
return this
}

Expand Down

0 comments on commit 48a0484

Please sign in to comment.