-
Notifications
You must be signed in to change notification settings - Fork 20
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
[tra-15669] et [tra-15400] Modales de signatures VHU (reception acceptation | traitement) #3915
base: dev
Are you sure you want to change the base?
Conversation
<p | ||
className={classNames( | ||
"fr-mt-5v", | ||
error ? "fr-error-text" : "fr-info-text" | ||
)} | ||
> | ||
Vous avez {state.codes.length} {type} pour ce contenant | ||
{infoMessage.replace("%", state.codes.length)} |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding High
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix AI about 24 hours ago
To fix the problem, we need to ensure that all occurrences of the %
character in the infoMessage
string are replaced with the length of state.codes
. This can be achieved by using a regular expression with the global flag (g
). This way, every instance of %
in the string will be replaced, not just the first one.
-
Copy modified line R171
@@ -170,3 +170,3 @@ | ||
> | ||
{infoMessage.replace("%", state.codes.length)} | ||
{infoMessage.replace(/%/g, state.codes.length)} | ||
</p> |
Quality Gate passedIssues Measures |
Contexte
Points de vigilance pour les intégrateurs
Démo
Ticket Favro
tra-15400
tra-15669
Checklist