Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aligned function pattern flag is broken #1617

Closed
VelocityRa opened this issue Jul 13, 2020 · 0 comments
Closed

Aligned function pattern flag is broken #1617

VelocityRa opened this issue Jul 13, 2020 · 0 comments
Assignees

Comments

@VelocityRa
Copy link

VelocityRa commented Jul 13, 2020

Only non-truncated patterns are broken.
For example, the pattern %30!.

I'm using the vcpkg port which is on version 1.6.1.
The pattern worked fine in an older version (don't remember which).

Debugging

Looks like a bug in

static details::padding_info handle_padspec_(std::string::const_iterator &it, std::string::const_iterator end);

It parses the ! as a truncate option instead of letting it be processed by
void handle_flag_(char flag, details::padding_info padding);

@gabime gabime self-assigned this Jul 14, 2020
gabime pushed a commit that referenced this issue Aug 30, 2020
@gabime gabime closed this as completed Aug 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants