Commit c9a6f20e authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fix bday and anniversary in sample

parent 4c6268bf
......@@ -16,7 +16,7 @@ BelCardParser::~BelCardParser() {
}
shared_ptr<BelCard> BelCardParser::parse(const string &input) {
unfold(input);
string vcard = unfold(input);
Parser<shared_ptr<BelCardGeneric>> parser(_grammar);
parser.setHandler("vcard", make_fn(&BelCard::create))
......@@ -66,7 +66,7 @@ shared_ptr<BelCard> BelCardParser::parse(const string &input) {
->setCollector("NICKNAME-value", make_sfn(&BelCardNickname::setValue));
size_t parsedSize = 0;
shared_ptr<BelCardGeneric> ret = parser.parseInput("vcard", input, &parsedSize);
shared_ptr<BelCardGeneric> ret = parser.parseInput("vcard", vcard, &parsedSize);
shared_ptr<BelCard> belCard = dynamic_pointer_cast<BelCard>(ret);
return belCard;
}
......
......@@ -82,17 +82,17 @@ zone = utc-designator / utc-offset
utc-designator = %x5A ; uppercase "Z"
date = year [month day]
/ year "-" month
/ "--" month [day]
/ "--" "-" day
/ year "-" month
/ "--" month [day]
/ "--" "-" day
date-noreduc = year month day
/ "--" month day
/ "--" "-" day
/ "--" month day
/ "--" "-" day
date-complete = year month day
time = hour [minute [second]] [zone]
/ "-" minute [second]
/ "-" "-" second
/ "-" minute [second]
/ "-" "-" second
time-notrunc = hour [minute [second]] [zone]
time-complete = hour minute second [zone]
time-designator = %x54 ; uppercase "T"
......
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment