Commit 157c7b9c authored by Pouya Kary's avatar Pouya Kary

fixing the bug on highlighting bad regexps

parent 70c1d029
......@@ -40,6 +40,11 @@
if ( !playgroundEditor )
return
if ( playgroundCompiledRegX === '' || playgroundCompiledRegX === undefined ) return
try {
new RegExp( playgroundCompiledRegX, 'mg' )
} catch ( e ) {
return
}
playgroundLatestMatches = playgroundFetchLatestMatches( )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment