From aab8989713d800aa91ff3676ac31e631f3b4c005 Mon Sep 17 00:00:00 2001 From: ihor-romaniuk Date: Mon, 3 Jun 2024 12:20:12 +0200 Subject: [PATCH] fix: answer range validation in Numerical input --- src/editors/containers/ProblemEditor/data/OLXParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editors/containers/ProblemEditor/data/OLXParser.js b/src/editors/containers/ProblemEditor/data/OLXParser.js index 918aa4958..7c0d907d6 100644 --- a/src/editors/containers/ProblemEditor/data/OLXParser.js +++ b/src/editors/containers/ProblemEditor/data/OLXParser.js @@ -418,7 +418,7 @@ export class OLXParser { [type]: defaultValue, }; } - const isAnswerRange = /[([]\d*,\d*[)\]]/gm.test(numericalresponse['@_answer']); + const isAnswerRange = /[([]\s*\d*,\s*\d*\s*[)\]]/gm.test(numericalresponse['@_answer']); answers.push({ id: indexToLetterMap[answers.length], title: numericalresponse['@_answer'],