From bfff69bb3c0c35e6eb52eeb0c5e61050bc83f80d 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 7f7f11c9b..7f4bbf801 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'],