Only look for [date] outside of metadata entries

This commit is contained in:
John Wiegley 2010-06-18 00:46:37 -04:00
parent 31e8ed7587
commit 805a78c121

View file

@ -138,6 +138,7 @@ void item_t::parse_tags(const char * p,
scope_t& scope,
bool overwrite_existing)
{
if (! std::strchr(p, ':')) {
if (const char * b = std::strchr(p, '[')) {
if (*(b + 1) != '\0' &&
(std::isdigit(*(b + 1)) || *(b + 1) == '=')) {
@ -155,9 +156,8 @@ void item_t::parse_tags(const char * p,
}
}
}
if (! std::strchr(p, ':'))
return;
}
scoped_array<char> buf(new char[std::strlen(p) + 1]);