mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed SonarQube issues.
This commit is contained in:
committed by
Akshay Joshi
parent
76a6feb2e7
commit
93f5fbc797
@@ -859,13 +859,13 @@ define([
|
||||
return null;
|
||||
},
|
||||
number_validate: function(value, field) {
|
||||
if (!/^-?[0-9]+(\.?[0-9]*)?$/.test(value)) {
|
||||
if (!/^-?\d+(\.?\d*)$/.test(value)) {
|
||||
return pgadminUtils.sprintf(pgAdmin.Browser.messages.MUST_BE_NUM, field.label);
|
||||
}
|
||||
return this.check_min_max(value, field);
|
||||
},
|
||||
integer_validate: function(value, field) {
|
||||
if (!/^-?[0-9]*$/.test(value)) {
|
||||
if (!/^-?\d*$/.test(value)) {
|
||||
return pgadminUtils.sprintf(pgAdmin.Browser.messages.MUST_BE_INT, field.label);
|
||||
}
|
||||
return this.check_min_max(value, field);
|
||||
|
||||
Reference in New Issue
Block a user