Skip to content

Commit 39a2443

Browse files
Support for warning for infinite loop, localized errors for new generic HTTP code based errors and IntelliSense compatibility
"Create Music with AI" is made StreamContent instead of GenerateContent to apply infinite loop warning, localized errors are extended for new generic HTTP code based errors and methods are made IntelliSense compatible.
2 parents abbd73a + de096d4 commit 39a2443

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

NeoBleeper/CreateMusicWithAI.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,8 @@ private string RewriteOutput(string output)
17141714
// Remove unnecessary comments if present
17151715
output = Regex.Replace(output, @"<!--.*?-->", String.Empty, RegexOptions.Singleline); // Remove single-line comments
17161716
output = Regex.Replace(output, @"/\*.*?\*/", String.Empty, RegexOptions.Singleline); // Remove multi-line comments
1717+
// Remove the remaining line break after removing comments
1718+
output = Regex.Replace(output, @"^\s*$\n|\r", String.Empty, RegexOptions.Multiline);
17171719
output = output.Trim();
17181720
return output;
17191721
}

0 commit comments

Comments
 (0)