-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
PassVsprintfValidator: Add separate regex for arguments only #16359
Conversation
Currently it is impossible to submit a translation with a vsprintf valid %% token because countArgumentsOfTranslation assumes it shouldn't be a literal '%' but an argument. A similar issue occurs in CheckTranslationDuplicatesCommand where it will not recognize the difference between '~' and '%%'
Hello @jnvsor! This is your first pull request on the PrestaShop project. Thank you, and welcome to this Open Source community! |
@jnvsor Thank you for your contribution. Could you open an issue for describing the bug ? Thanks |
@Progi1984 Added a bug report |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi and sorry for the delay,
why not updating the ̀regexSprintfParams` property?
Because you still want |
@jnvsor This could be done with a single regex 🤔 |
By using capture groups? I presume there was a performance reason not to, given that someone went to the effort of making the groups in this regex non-capturing in the first place. The options as I see them are:
|
@jnvsor We should be able to use each characters we want 🤔 |
@PierreRambaud Any update :) ? |
Waiting for a feedback, this solution is not clean IMHO |
Hello, it seems this PR has no activity since 2020. I close this PR, following our review guidelines "Pull Requests may be closed after 30 days of inactivity". If however you are still interested in it, please ping us 😉 we can reopen. Thank you for your contribution. |
%%
literal%%
- it will not be saved (Despite a green popup)This change is