Skip to content
RED SAG Skills
medium10 pts · first answer countsweb-securitydenial-of-service

A regex that freezes the server

Validating input with this regex makes a Node server hang on a 40-character string of "a" followed by "!". Why?

/^(a+)+$/.test(input)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions