community-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1864332&view=rev
Log:
more anchor tweaks for comment parsing

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=1864332&r1=1864331&r2=1864332&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:00:52
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]+?)(?=([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=1864332&r1=1864331&r2=1864332&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:00:52 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]+?)(?=([a-z0-9]+:|$))?/gi);
       if (a) {
         for (var i = 0; i < a.length; i++) {
           let cmt = a[i];



Mime
View raw message