docs: Updated alias (#1511)

The expression in alias `(+*)` is invalid and a correct working method would be `(.*)`
This commit is contained in:
Mark Battistella 2021-02-15 12:48:00 +11:00 committed by GitHub
parent 065cdd4223
commit 6c13bdb7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -354,7 +354,7 @@ Set the route alias. You can freely manage routing rules. Supports RegExp.
```js
window.$docsify = {
alias: {
'/foo/(+*)': '/bar/$1', // supports regexp
'/foo/(.*)': '/bar/$1', // supports regexp
'/zh-cn/changelog': '/changelog',
'/changelog':
'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG',