Skip to content

Commit

Permalink
fix: answer range validation in Numerical input
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-romaniuk committed Jun 3, 2024
1 parent 8dc1a3f commit aab8989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editors/containers/ProblemEditor/data/OLXParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit aab8989

Please sign in to comment.