zhuangchong opened a new pull request #3171:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/3171
## timeoutAlarm.vue interval verification bug,You can now set negative
integers
The interval parameter is validated by regular expression, and only positive
integers can pass
## Brief change log
Param interval , Positive integer validation rules use regular
expressions
++ const reg = /^[1-9]\d*$/
++ if (this.enable && !reg.test(this.interval)) {
-- if (this.enable && !parseInt(this.interval) &&
!_.isInteger(this.interval)) {
## Verify this pull request
*(example:)*
- *Manually verified the change by testing locally.*
## timeoutAlarm.vue interval 参数验证bugverification bug,目前负整数也可以验证通过
interval 参数 通过正则表达式验证,只有正整数可以验证通过
## Brief change log
interval 参数 ,正整数验证规则使用正则表达式
++ const reg = /^[1-9]\d*$/
++ if (this.enable && !reg.test(this.interval)) {
-- if (this.enable && !parseInt(this.interval) &&
!_.isInteger(this.interval)) {
-通过本地测试手动验证更改
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]