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

Fix code scanning alert no. 12: Useless regular-expression character escape #57

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

ronknight
Copy link
Owner

Fixes https://github.com/ronknight/InventorySystem/security/code-scanning/12

To fix the problem, we need to remove the unnecessary escape sequence \+ and replace it with +. This change will not affect the functionality of the code but will make it cleaner and easier to read.

  • Locate the line with the unnecessary escape sequence in the file assets/plugins/input-mask/jquery.inputmask.numeric.extensions.js.
  • Replace \+ with + in the regular expression.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…escape

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@ronknight ronknight marked this pull request as ready for review November 25, 2024 17:08
@ronknight ronknight merged commit 8c758a6 into master Nov 25, 2024
2 checks passed
@ronknight ronknight deleted the alert-autofix-12 branch November 25, 2024 18:59
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

Successfully merging this pull request may close these issues.

1 participant