stripping quotation marks from the response
This commit is contained in:
parent
75dff8b292
commit
df17226b7a
1 changed files with 1 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ async function chatgpt_getFromDOM(pos) {
|
||||||
response = responseDivs[nthOfResponse - 1].textContent;
|
response = responseDivs[nthOfResponse - 1].textContent;
|
||||||
}
|
}
|
||||||
response = response.replace(/^ChatGPTChatGPT/, ''); // strip sender name
|
response = response.replace(/^ChatGPTChatGPT/, ''); // strip sender name
|
||||||
|
response = response.trim().replace(/^"|"$/g, ''); // strip quotation marks
|
||||||
//console.log('chatgpt_getFromDOM: ' + response);
|
//console.log('chatgpt_getFromDOM: ' + response);
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue