Bug in web editor parsing %d%% placeholder

I’d like to report a possible bug on the web editor interface, related to placeholders.

I have a source value for a number and a percent sign: %d%%, which will be e.g. “81%”. In a localized language, I want to add a (non-breaking) space between the number and the percent sign.

The web editor UI thinks that the placeholder is %d%, and will report a “Missing placeholder” error for my translation “%d %%”.

I observed the issue at /p/%s/phrases/%d/edit/%s

Hey,
You can ignore any validation rule if incorrect by clicking the “Ignore validation issue” icon.

Thank you, @janbilek. Of course, the warning caused by the incorrect rule can be ignored. I created this bug report so that it shouldn’t even trigger a validation error in the future. The UI should parse %d as the placeholder, not %d%.

I’ve encountered the same issue with the %d%% placeholder. In our translations, we often add a non-breaking space between the number and the percent sign, like %d %%. However, the editor flags this as a missing placeholder error, interpreting %d% as the placeholder. While ignoring the validation works, it would be beneficial if the parser correctly recognized %d as the placeholder to prevent such false positives.