why do you crash if i write if (file:match("%.wav$") or file:match("%.mp3$")) and…
- User
why do you crash if i write if (file:match("%.wav")) and (search_query == "" or file:lower():find(search_query:lower(), 1, true)) then
- Assistant
There can be several reasons why a piece of code like the one you provided might cause a crash. Let's break down the code and identify potential issues: