Clean-up code
| @@ -335,8 +335,6 @@ function updateInfoBlock(editorHtml) { | |||
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | const flagInfo = []; | 337 | const flagInfo = []; |
| 338 | // Check flags | ||
| 339 | |||
| 340 | flagInfo.push(regex.flags.includes('g') ? t`Applies to all matches` : t`Applies to the first match`); | 338 | flagInfo.push(regex.flags.includes('g') ? t`Applies to all matches` : t`Applies to the first match`); |
| 341 | flagInfo.push(regex.flags.includes('i') ? t`Case insensitive` : t`Case sensitive`); | 339 | flagInfo.push(regex.flags.includes('i') ? t`Case insensitive` : t`Case sensitive`); |
| 342 | 340 | ||
| @@ -346,7 +344,6 @@ function updateInfoBlock(editorHtml) { | |||
| 346 | } catch (error) { | 344 | } catch (error) { |
| 347 | infoBlock.addClass('error'); | 345 | infoBlock.addClass('error'); |
| 348 | infoBlockTextSpan.text(error.message); | 346 | infoBlockTextSpan.text(error.message); |
| 349 | return; | ||
| 350 | } | 347 | } |
| 351 | } | 348 | } |
| 352 | 349 | ||