sylar icon indicating copy to clipboard operation
sylar copied to clipboard

日志库对%%解析有BUG

Open OutcastWis opened this issue 2 years ago • 1 comments

解析%%%p%%会失败. 应该在判断%%成功后, 使++i

if ((i + 1) < pattern_.size())
{
    if (pattern_[i + 1] == '%')
    {
            nstr.append(1, '%');
            ++i;
            continue;
    }
}

OutcastWis avatar May 25 '22 15:05 OutcastWis

👍

KkemChen avatar Apr 16 '23 13:04 KkemChen