community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864335 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js
Date Sat, 03 Aug 2019 13:03:20 GMT
Author: humbedooh
Date: Sat Aug  3 13:03:20 2019
New Revision: 1864335

URL: http://svn.apache.org/viewvc?rev=1864335&view=rev
Log:
check for newline and name OR end of text

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.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=1864335&r1=1864334&r2=1864335&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 Sat Aug  3 13:03:20
2019
@@ -129,7 +129,7 @@ function generate_meta(data) {
       
       // split and rejoin comments
       let ntxt = "";
-      let a = comment.match(/(?:^|\n)([a-z0-9]+: [\s\S\r\n]+?)(?=([a-z0-9]+:|$))?/gi);
+      let a = comment.match(/(?:^|\n)([a-z0-9]+: [\s\S\r\n]+?)(?=(\n[a-z0-9]+:|$))/gi);
       if (a) {
         for (var i = 0; i < a.length; i++) {
           let cmt = a[i];

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=1864335&r1=1864334&r2=1864335&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Sat Aug  3 13:03:20 2019
@@ -1298,7 +1298,7 @@ function generate_meta(data) {
       
       // split and rejoin comments
       let ntxt = "";
-      let a = comment.match(/(?:^|\n)([a-z0-9]+: [\s\S\r\n]+?)(?=([a-z0-9]+:|$))?/gi);
+      let a = comment.match(/(?:^|\n)([a-z0-9]+: [\s\S\r\n]+?)(?=(\n[a-z0-9]+:|$))/gi);
       if (a) {
         for (var i = 0; i < a.length; i++) {
           let cmt = a[i];



Mime
View raw message