@youdie006/prodex 0.40.9 → 0.40.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chatgpt-browser.js +3 -1
- package/package.json +1 -1
package/dist/chatgpt-browser.js
CHANGED
|
@@ -5223,7 +5223,9 @@ export function transcriptContainsWholeSentPrompt(userText, sentPrompt) {
|
|
|
5223
5223
|
}
|
|
5224
5224
|
const NORMALIZED_PROMPT_MATCH_CHARS = 120;
|
|
5225
5225
|
function normalizeChatGptPromptText(value) {
|
|
5226
|
-
|
|
5226
|
+
const unescaped = value.replace(/\\([\\`*_{}[\]()#+\-.!>~|])/g, "$1");
|
|
5227
|
+
const renderedFences = unescaped.replace(/(^|\r?\n)```text[ \t]*\r?\n([\s\S]*?)\r?\n```(?=\r?\n|$)/g, "$1text\n$2");
|
|
5228
|
+
return renderedFences.replace(/\s+/g, " ").trim();
|
|
5227
5229
|
}
|
|
5228
5230
|
function chatGptRequestMarkerMatches(userText, requestId) {
|
|
5229
5231
|
const markers = [...normalizeChatGptPromptText(userText).matchAll(/\[prodex-request:([a-f0-9]{32})\]/g)];
|