This commit is contained in:
yoannchb-pro
2023-06-12 23:13:47 -04:00
parent 7af54c40ad
commit 0458137f0c
7 changed files with 10 additions and 5 deletions
+1
View File
@@ -74,6 +74,7 @@ Type back the <b>code</b> on the keyboard and the code will be removed from the
- <b>Autocomplete:</b> The extension will complete the question for you. - <b>Autocomplete:</b> The extension will complete the question for you.
- <b>Clipboard:</b> The response is copied into the clipboard. - <b>Clipboard:</b> The response is copied into the clipboard.
- <b>Question to answer:</b> The question is converted to the answer and you can click on it to show back the question (or show back the answer). - <b>Question to answer:</b> The question is converted to the answer and you can click on it to show back the question (or show back the answer).
<br/><img src="./assets/question-to-answer.gif" alt="Question to Answer">
## Settings ## Settings
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

+2 -2
View File
@@ -61,8 +61,8 @@
*/ */
function normalizeText(text) { function normalizeText(text) {
return text return text
.replace(/\n+/g, "\n") .replace(/(\n\s*)+/gi, "\n")
.replace(/[ \t]+/g, " ") .replace(/[ \t]+/gi, " ")
.toLowerCase() .toLowerCase()
.trim() .trim()
.replace(/^[a-z\d]\.\s/gi, "") //a. text, b. text, c. text, 1. text, 2. text, 3.text .replace(/^[a-z\d]\.\s/gi, "") //a. text, b. text, c. text, 1. text, 2. text, 3.text
File diff suppressed because one or more lines are too long
+4
View File
@@ -16,3 +16,7 @@ for (const input of document.querySelectorAll(
for (const icon of document.querySelectorAll(".text-danger, .text-success")) { for (const icon of document.querySelectorAll(".text-danger, .text-success")) {
icon.remove(); icon.remove();
} }
for (const feedback of document.querySelectorAll(".specificfeedback")) {
feedback.remove();
}
+2 -2
View File
@@ -4,8 +4,8 @@
*/ */
function normalizeText(text: string) { function normalizeText(text: string) {
return text return text
.replace(/\n+/g, "\n") .replace(/(\n\s*)+/gi, "\n")
.replace(/[ \t]+/g, " ") .replace(/[ \t]+/gi, " ")
.toLowerCase() .toLowerCase()
.trim() .trim()
.replace(/^[a-z\d]\.\s/gi, "") //a. text, b. text, c. text, 1. text, 2. text, 3.text .replace(/^[a-z\d]\.\s/gi, "") //a. text, b. text, c. text, 1. text, 2. text, 3.text