This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch feature/validation
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/feature/validation by this
push:
new 88c3e0c Fixed string validator
88c3e0c is described below
commit 88c3e0cfc13070da87e1c0b5187c0aed4ad014be
Author: Harbs <[email protected]>
AuthorDate: Sun Oct 1 03:40:57 2017 +0300
Fixed string validator
---
.../org/apache/flex/utils/validation/StringValidator.as | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git
a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/validation/StringValidator.as
b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/validation/StringValidator.as
index 6f71fa6..974e747 100644
---
a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/validation/StringValidator.as
+++
b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/validation/StringValidator.as
@@ -22,7 +22,7 @@ package org.apache.flex.utils.validation
import org.apache.flex.utils.StringUtil;
// [ResourceBundle("validators")]
-
+ //TODO Make PAYG
/**
* The StringValidator class validates that the length of a String
* is within a specified range.
@@ -179,7 +179,7 @@ package org.apache.flex.utils.validation
maxLengthOverride = value;
_maxLength = value != null ?
- Number(value) : Number.MAX_VALUE;
+ Number(value) : NaN;
// TODO get from resource bundle
// _maxLength = value != null ?
// Number(value) :
@@ -228,7 +228,7 @@ package org.apache.flex.utils.validation
minLengthOverride = value;
_minLength = value != null ?
- Number(value) : Number.MIN_VALUE;
+ Number(value) : NaN;
// TODO get from resource bundle
// _minLength = value != null ?
@@ -284,9 +284,7 @@ package org.apache.flex.utils.validation
tooLongErrorOverride = value;
_tooLongError = value != null ?
- value :
- resourceManager.getString(
- "validators", "tooLongError");
+ value : "This string is longer than the maximum
allowed length. This must be less than {0} characters long.";
}
//----------------------------------
@@ -330,9 +328,7 @@ package org.apache.flex.utils.validation
tooShortErrorOverride = value;
_tooShortError = value != null ?
- value :
- resourceManager.getString(
- "validators", "tooShortError");
+ value : "This string is shorter than the minimum
allowed length. This must be at least {0} characters long.";
}
//--------------------------------------------------------------------------
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].