mirror of
https://github.com/boostorg/log.git
synced 2026-02-17 13:52:15 +00:00
Fixed incorrect matching of digits in a file name against a placeholder.
If a file name pattern ended with a placeholder, e.g. a file counter, file names fitting that pattern would not be matched by scan_for_files, leaving such files unmanaged. Fixes https://github.com/boostorg/log/issues/78.
This commit is contained in:
@@ -390,8 +390,10 @@ BOOST_LOG_ANONYMOUS_NAMESPACE {
|
||||
{
|
||||
for (; n > 0; --n)
|
||||
{
|
||||
if (it == end)
|
||||
return false;
|
||||
path_char_type c = *it++;
|
||||
if (!traits_t::is_digit(c) || it == end)
|
||||
if (!traits_t::is_digit(c))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user