Mercurial > clickerconvert
comparison src/constants.h @ 72:d545e5cb2b72
Make comma for unfilled choices optional
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 04 Oct 2016 17:11:01 +0200 |
parents | fe55e1e5bbf2 |
children | 1e6e7699f0b8 |
comparison
equal
deleted
inserted
replaced
71:7e195eacb0da | 72:d545e5cb2b72 |
---|---|
67 * @brief The pattern used to match a multiple choice answer. */ | 67 * @brief The pattern used to match a multiple choice answer. */ |
68 #define CHOICE_PATTERN "\"(.*)\",(?<num>\\d+)?,(?<percent>\\d{0,3}\\.{0,1}\\d*)?" | 68 #define CHOICE_PATTERN "\"(.*)\",(?<num>\\d+)?,(?<percent>\\d{0,3}\\.{0,1}\\d*)?" |
69 | 69 |
70 /** | 70 /** |
71 * @brief The pattern used to match an unfilled choice answer. */ | 71 * @brief The pattern used to match an unfilled choice answer. */ |
72 #define CHOICE_UNFILLED_PATTERN "\"([^\"]*)\"," | 72 #define CHOICE_UNFILLED_PATTERN "\"([^\"]*)\"[,]{0,1}" |
73 | 73 |
74 /** | 74 /** |
75 * @brief The pattern used to match a free text answer. */ | 75 * @brief The pattern used to match a free text answer. */ |
76 #define FREETXT_PATTERN "\"([^\"]*)\"?", QRegularExpression::MultilineOption | 76 #define FREETXT_PATTERN "\"([^\"]*)\"?", QRegularExpression::MultilineOption |
77 | 77 |