This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new 9df5803 Revert eager adding of separators
9df5803 is described below
commit 9df58031c97d9b117f4ae0b6f567665e2d0cb91d
Author: Harbs <[email protected]>
AuthorDate: Wed Jan 23 08:50:25 2019 +0200
Revert eager adding of separators
---
.../royale/org/apache/royale/html/accessories/StringDateFormatter.as | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/frameworks/projects/Formatters/src/main/royale/org/apache/royale/html/accessories/StringDateFormatter.as
b/frameworks/projects/Formatters/src/main/royale/org/apache/royale/html/accessories/StringDateFormatter.as
index b6bbacc..72b6fd5 100644
---
a/frameworks/projects/Formatters/src/main/royale/org/apache/royale/html/accessories/StringDateFormatter.as
+++
b/frameworks/projects/Formatters/src/main/royale/org/apache/royale/html/accessories/StringDateFormatter.as
@@ -96,9 +96,8 @@ package org.apache.royale.html.accessories
break;
}
// if there's no more left, str is empty and no separator
- if (i <= length - 2) {
- if(token.length == part.length)
- result += _separator;
+ if (str && i <= length - 2) {
+ result += _separator;
}
}