mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Merger removing unnecesarry parts of answers
This commit is contained in:
parent
147f660319
commit
1c5d24a326
1 changed files with 7 additions and 5 deletions
12
merger.js
12
merger.js
|
@ -18,11 +18,10 @@
|
||||||
|
|
||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/*Question object
|
// TODO: handle flags
|
||||||
* q: question
|
// join json datas, or raw datas
|
||||||
* a: answer
|
// or something else
|
||||||
* i: image
|
|
||||||
* */
|
|
||||||
class Question {
|
class Question {
|
||||||
constructor(q, a, i) {
|
constructor(q, a, i) {
|
||||||
this.Q = q;
|
this.Q = q;
|
||||||
|
@ -232,6 +231,9 @@ function ReadData(data) {
|
||||||
// dont allow overwriting
|
// dont allow overwriting
|
||||||
// ?!!!!
|
// ?!!!!
|
||||||
if (!currQuestion.HasAnswer()) {
|
if (!currQuestion.HasAnswer()) {
|
||||||
|
currData = currData.replace("A helyes válaszok: ", "");
|
||||||
|
currData = currData.replace("A helyes válasz: ", "");
|
||||||
|
|
||||||
currQuestion.A = currData;
|
currQuestion.A = currData;
|
||||||
}
|
}
|
||||||
ExpectedIdentifier = ['?', '>', '+'];
|
ExpectedIdentifier = ['?', '>', '+'];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue