We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68dc041 commit 114a844Copy full SHA for 114a844
packages/components/src/utils.ts
@@ -1346,8 +1346,8 @@ export const refreshOAuth2Token = async (
1346
export const stripHTMLFromToolInput = (input: string) => {
1347
const turndownService = new TurndownService()
1348
let cleanedInput = turndownService.turndown(input)
1349
- // After conversion, replace any escaped underscores with regular underscores
1350
- cleanedInput = cleanedInput.replace(/\\_/g, '_')
+ // After conversion, replace any escaped underscores and square brackets with regular unescaped ones
+ cleanedInput = cleanedInput.replace(/\\([_[\]])/g, '$1')
1351
return cleanedInput
1352
}
1353
0 commit comments