@trebco/treb 29.5.2 → 29.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1069,7 +1069,16 @@ const Run = async () => {
1069
1069
  // an extra empty line in the comment, which is unfortunate but not
1070
1070
  // the end of the world.
1071
1071
 
1072
- printed = printed.replace(/(\s*\*)\s*@privateRemarks[\s\S]*?((?: @|\*\/))/g, '$1$2');
1072
+ // FIXME: this doesn't work if there are 2 @privateRemarks blocks?
1073
+ // ...is there a lookahead in js regex? or do we need to loop this?
1074
+
1075
+ for (;;) {
1076
+ const updated = printed.replace(/(\s*\*)\s*@privateRemarks[\s\S]*?((?: @|\*\/))/g, '$1$2');
1077
+ if (updated === printed) {
1078
+ break;
1079
+ }
1080
+ printed = updated;
1081
+ }
1073
1082
 
1074
1083
  //
1075
1084
  // attempting to clean up... this somewhat confusing regexp