We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad62706 commit 83229ccCopy full SHA for 83229cc
modules/st2-auto-form/fields/integer.js
@@ -49,13 +49,13 @@ export default class IntegerField extends BaseTextField {
49
for (var n = 0; n < v.length; n++) {
50
var digit = (v.charCodeAt(n) >= 48 && v.charCodeAt(n) <= 57) || v.charCodeAt(n) == 45 || v.charCodeAt(n) == 8;
51
if(!digit){
52
- return `'${v}'is non integer value`
+ return `'${v}' must be a positive integer`
53
}else{
54
if(v < 0){
55
- return `Entered value should be Min 0`
+ return `Value must be > 0`
56
}
57
- else if(v > 2492000){
58
- return `Entered value should be Max 2492000`
+ else if(v > 2592000){
+ return `Value must be <= 2592000`
59
60
v = v
61
0 commit comments