What's wrong with this JavaScript regex?

What's wrong with this JavaScript regex in validation. The JavaScript pattern has catastrophic backtracking, so a single input can hang a worker. In JavaScript APIs this becomes a denial of service.

#whatswrongwiththisjavascriptcode #javascriptbug #javascriptproductionbug #javascriptdebugging #javascriptbackend #javascriptcodereview #javascriptsecurity #javascriptperformance #javascriptreliability #javascr...

https://www.youtube.com/watch?v=B-KEgFSOvfM

Whats wrong with this JavaScript regex? #javascriptbackend

YouTube