Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix code scanning alert no. 370: Useless regular-expression character…
… escape (#198264) Fixes [https://github.com/elastic/kibana/security/code-scanning/370](https://github.com/elastic/kibana/security/code-scanning/370) To fix the problem, we need to remove the unnecessary escape sequence `\-` from the regular expression on line 32. This will not change the functionality of the code but will make the regular expression clearer and more maintainable. - In general terms, we need to ensure that only necessary escape sequences are used in regular expressions. - Specifically, we will update the regular expression on line 32 to remove the unnecessary escape sequence. - The change will be made in the file `x-pack/plugins/session_view/public/methods/index.tsx`. _Suggested fixes powered by Copilot Autofix. Review carefully before merging._ --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: kibanamachine <[email protected]> Co-authored-by: @Omolola-Akinleye
- Loading branch information