stripping quotation marks from the response

This commit is contained in:
mic 2024-05-01 00:05:38 +02:00
parent 75dff8b292
commit df17226b7a

View file

@ -97,6 +97,7 @@ async function chatgpt_getFromDOM(pos) {
response = responseDivs[nthOfResponse - 1].textContent;
}
response = response.replace(/^ChatGPTChatGPT/, ''); // strip sender name
response = response.trim().replace(/^"|"$/g, ''); // strip quotation marks
//console.log('chatgpt_getFromDOM: ' + response);
}
return response;