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
|
||||
* q: question
|
||||
* a: answer
|
||||
* i: image
|
||||
* */
|
||||
// TODO: handle flags
|
||||
// join json datas, or raw datas
|
||||
// or something else
|
||||
|
||||
class Question {
|
||||
constructor(q, a, i) {
|
||||
this.Q = q;
|
||||
|
@ -232,6 +231,9 @@ function ReadData(data) {
|
|||
// dont allow overwriting
|
||||
// ?!!!!
|
||||
if (!currQuestion.HasAnswer()) {
|
||||
currData = currData.replace("A helyes válaszok: ", "");
|
||||
currData = currData.replace("A helyes válasz: ", "");
|
||||
|
||||
currQuestion.A = currData;
|
||||
}
|
||||
ExpectedIdentifier = ['?', '>', '+'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue