# HG changeset patch # User Andre Heinecke # Date 1475670249 -7200 # Node ID 9412d60c8ac15d4883951106400a6045fd0336f3 # Parent 1e6e7699f0b8767dcbb155d01ee60782978c9678 Handle multiline choices diff -r 1e6e7699f0b8 -r 9412d60c8ac1 src/constants.h --- a/src/constants.h Wed Oct 05 14:23:23 2016 +0200 +++ b/src/constants.h Wed Oct 05 14:24:09 2016 +0200 @@ -65,11 +65,11 @@ /** * @brief The pattern used to match a multiple choice answer. */ -#define CHOICE_PATTERN "\"(.*)\",(?\\d+)?,(?\\d{0,3}\\.{0,1}\\d*)?" +#define CHOICE_PATTERN "\"([^\"]*?)\",(?\\d+)?,(?\\d{0,3}\\.{0,1}\\d*)?", QRegularExpression::MultilineOption /** * @brief The pattern used to match an unfilled choice answer. */ -#define CHOICE_UNFILLED_PATTERN "\"([^\"]*)\"[,]{0,1}" +#define CHOICE_UNFILLED_PATTERN "\"([^\"]*?)\"[,]{0,1}", QRegularExpression::MultilineOption /** * @brief The pattern used to match a free text answer. */