mirror of https://gitee.com/bigwinds/arangodb
Feature 3.4/joi ui upgrade (#7322)
* fix a small regex issue, upgrade joi to newer version * changelog * prev. commited wrong regex
This commit is contained in:
parent
dcf6cde1f4
commit
ee45b6a595
|
@ -1,6 +1,8 @@
|
|||
v3.4.0-rc.5 (XXXX-XX-XX)
|
||||
------------------------
|
||||
|
||||
* Updated joi library (Web UI), improved foxx mount path validation
|
||||
|
||||
* disable startup warning for Linux kernel variable `vm.overcommit_memory` settings
|
||||
values of 0 or 1.
|
||||
Effectively `overcommit_memory` settings value of 0 or 1 fix two memory-allocation
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
"frontend/js/lib/bootstrap-pagination.min.js",
|
||||
"frontend/js/lib/jqconsole.min.js",
|
||||
"frontend/js/lib/highlight.js",
|
||||
"frontend/js/lib/joi.browser.js",
|
||||
"frontend/js/lib/joi-browser.min.js",
|
||||
"frontend/js/lib/md5.min.js",
|
||||
"frontend/js/lib/pretty-bytes.js",
|
||||
"frontend/js/lib/marked.min.js",
|
||||
|
|
|
@ -1233,8 +1233,8 @@
|
|||
validateInput: function () {
|
||||
return [
|
||||
{
|
||||
rule: Joi.string().regex(/^(\/(APP[^\/]+|(?!APP)[a-zA-Z0-9_\-\/]+))+$/i),
|
||||
msg: 'May not contain /APP'
|
||||
rule: Joi.string().regex(/(\/|^)APP(\/|$)/i, {invert: true}),
|
||||
msg: 'May not contain APP'
|
||||
},
|
||||
{
|
||||
rule: Joi.string().regex(/^([a-zA-Z0-9_\-\/]+)+$/),
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
|
@ -46,7 +46,7 @@
|
|||
validateInput: function () {
|
||||
return [
|
||||
{
|
||||
rule: Joi.string().regex(/^(\/(APP[^/]+|(?!APP)[a-zA-Z0-9_\-%]+))+$/i),
|
||||
rule: Joi.string().regex(/(\/|^)APP(\/|$)/i, {invert: true}),
|
||||
msg: 'May not contain /APP'
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue