Merge branch 'dev' of gitlab.corp.qunar.com:mfe/yapi into dev

This commit is contained in:
wenbo.dong 2017-07-26 12:13:25 +08:00
commit a1c4c0ca7a
3 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20); box-shadow: 0 2px 4px 0 rgba(0,0,0,0.20);
border-radius: 4px; border-radius: 4px;
text-align: right; text-align: right;
min-height: 700px;;
} }
.m-table { .m-table {

View File

@ -141,7 +141,7 @@ exports.filterRes = (list, rules) => {
} }
exports.verifyPath = (path) => { exports.verifyPath = (path) => {
if (/^\/[a-zA-Z0-9\-\/_:]+$/.test(path)) { if (/^\/[a-zA-Z0-9\-\/_:\.]+$/.test(path)) {
if (path[path.length - 1] === '/') { if (path[path.length - 1] === '/') {
return false; return false;
} else { } else {

View File

@ -162,7 +162,7 @@ exports.filterRes = function (list, rules) {
}; };
exports.verifyPath = function (path) { exports.verifyPath = function (path) {
if (/^\/[a-zA-Z0-9\-\/_:]+$/.test(path)) { if (/^\/[a-zA-Z0-9\-\/_:\.]+$/.test(path)) {
if (path[path.length - 1] === '/') { if (path[path.length - 1] === '/') {
return false; return false;
} else { } else {