Skip to content

Commit

Permalink
fix: answer range validation in Numerical input (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-romaniuk authored Aug 16, 2024
1 parent a9e8bd5 commit b55e5c9
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 b55e5c9

Please sign in to comment.