mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-17 05:57:11 -04:00
When adding a new regex rule to the Automatic Scene Switcher, OBS would crash if the regex was invalid. This was because the regex was added to the Regex object without a test or try-catch. This commit fixes that behavior, and adds a warning message when attempting to add an invalid regex.