add no new line validator
Created by: unclejustin
Closes https://github.com/sourcegraph/sourcegraph/issues/30713
Adds "no new lines" check to capture group creation UI
Test plan
- Go to insights and create new insight
- Select "Detect and track patterns"
- Add
\n
to the query. Should show error seen in image above.