fix: git import issue when importing bolt on bolt (#1020)
* fix: import bolt on bolt fix * added escape on folder import * type fix
This commit is contained in:
@@ -64,6 +64,10 @@ function cleanoutMarkdownSyntax(content: string) {
|
||||
return content;
|
||||
}
|
||||
}
|
||||
|
||||
function cleanEscapedTags(content: string) {
|
||||
return content.replace(/</g, '<').replace(/>/g, '>');
|
||||
}
|
||||
export class StreamingMessageParser {
|
||||
#messages = new Map<string, MessageState>();
|
||||
|
||||
@@ -110,6 +114,7 @@ export class StreamingMessageParser {
|
||||
// Remove markdown code block syntax if present and file is not markdown
|
||||
if (!currentAction.filePath.endsWith('.md')) {
|
||||
content = cleanoutMarkdownSyntax(content);
|
||||
content = cleanEscapedTags(content);
|
||||
}
|
||||
|
||||
content += '\n';
|
||||
@@ -141,6 +146,7 @@ export class StreamingMessageParser {
|
||||
|
||||
if (!currentAction.filePath.endsWith('.md')) {
|
||||
content = cleanoutMarkdownSyntax(content);
|
||||
content = cleanEscapedTags(content);
|
||||
}
|
||||
|
||||
this._options.callbacks?.onActionStream?.({
|
||||
|
||||
Reference in New Issue
Block a user