inefficient regular expression in javascript
Hi in our below code using codeql scanning got an alert that "This part of the regular expression may cause exponential backtracking on strings starting with '0' and containing many repetitions of '0'." const validateUrl = str => { var…