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'],