You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2019/08/06 10:19:39 UTC
svn commit: r1864493 - in /comdev/reporter.apache.org/trunk/site/wizard/js:
source/generators.js source/statistics_generator.js wizard.js
Author: humbedooh
Date: Tue Aug 6 10:19:39 2019
New Revision: 1864493
URL: http://svn.apache.org/viewvc?rev=1864493&view=rev
Log:
use regex
Modified:
comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864493&r1=1864492&r2=1864493&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Tue Aug 6 10:19:39 2019
@@ -206,8 +206,8 @@ function health_tips(data) {
// Mailing list changes
for (var ml in data.delivery[project]) {
let mldata = data.delivery[project][ml];
- let a = ml.split('-', 1);
- ml = "%s@%s.apache.org".format(a[1], a[0]);
+ let a = ml.match(/([^-]+)-(.+)/);
+ ml = "%s@%s.apache.org".format(a[2], a[1]);
if (a[1].match(/commits|cvs|announce/)) { // we already count commits, so...
continue;
}
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js?rev=1864493&r1=1864492&r2=1864493&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/statistics_generator.js Tue Aug 6 10:19:39 2019
@@ -140,8 +140,8 @@ function statistics_health(data) {
}
});
let mldata = data.delivery[project][ml];
- let a = ml.split('-', 1);
- ml = "%s@%s.apache.org".format(a[1], a[0]);
+ let a = ml.match(/([^-]+)-(.+)/);
+ ml = "%s@%s.apache.org".format(a[2], a[1]);
if (a[1].match(/commits|cvs|announce/)) { // we already count commits, so...
continue;
}
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864493&r1=1864492&r2=1864493&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Tue Aug 6 10:19:39 2019
@@ -1391,8 +1391,8 @@ function health_tips(data) {
// Mailing list changes
for (var ml in data.delivery[project]) {
let mldata = data.delivery[project][ml];
- let a = ml.split('-', 1);
- ml = "%s@%s.apache.org".format(a[1], a[0]);
+ let a = ml.match(/([^-]+)-(.+)/);
+ ml = "%s@%s.apache.org".format(a[2], a[1]);
if (a[1].match(/commits|cvs|announce/)) { // we already count commits, so...
continue;
}
@@ -2238,8 +2238,8 @@ function statistics_health(data) {
}
});
let mldata = data.delivery[project][ml];
- let a = ml.split('-', 1);
- ml = "%s@%s.apache.org".format(a[1], a[0]);
+ let a = ml.match(/([^-]+)-(.+)/);
+ ml = "%s@%s.apache.org".format(a[2], a[1]);
if (a[1].match(/commits|cvs|announce/)) { // we already count commits, so...
continue;
}