Skip to content

Commit

Permalink
docs(basic/controller.md): typo 'matchs' -> 'matches' (#802)
Browse files Browse the repository at this point in the history
typo fix: change 'matchs' to 'matches'
  • Loading branch information
lslxdx authored and dead-horse committed Apr 25, 2017
1 parent b4eb05b commit 9200a51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/source/zh-cn/basics/controller.md
Expand Up @@ -802,7 +802,7 @@ exports.jsonp = {
exports.jsonp = {
whiteList: /^https?:\/\/test.com\//,
};
// matchs referrer:
// matches referrer:
// https://test.com/hello
// http://test.com/
```
Expand All @@ -813,18 +813,18 @@ exports.jsonp = {
exports.jsonp = {
whiteList: '.test.com',
};
// matchs domain test.com:
// matches domain test.com:
// https://test.com/hello
// http://test.com/

// matchs subdomain
// matches subdomain
// https://sub.test.com/hello
// http://sub.sub.test.com/

exports.jsonp = {
whiteList: 'sub.test.com',
};
// only matchs domain sub.test.com:
// only matches domain sub.test.com:
// https://sub.test.com/hello
// http://sub.test.com/
```
Expand All @@ -835,7 +835,7 @@ exports.jsonp = {
exports.jsonp = {
whiteList: [ 'sub.test.com', 'sub2.test.com' ],
};
// matchs domain sub.test.com and sub2.test.com:
// matches domain sub.test.com and sub2.test.com:
// https://sub.test.com/hello
// http://sub2.test.com/
```
Expand Down

0 comments on commit 9200a51

Please sign in to comment.