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/03 13:03:20 UTC
svn commit: r1864335 - in /comdev/reporter.apache.org/trunk/site/wizard/js:
source/generators.js wizard.js
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];