Files
openide/RegExpSupport/resources/inspectionDescriptions/RegExpEmptyAlternationBranch.html
Bas Leijdekkers c50a102e50 update RegExp inspection descriptions with examples
GitOrigin-RevId: 1daa0f68ede1036d134127cdacd0b61e5d438ca8
2021-06-06 13:43:39 +00:00

17 lines
471 B
HTML

<html>
<body>
Reports empty branches in a RegExp alternation.
An empty branch will only match the empty string, and in most cases that is not what is desired.
This inspection will not report a single empty branch at the start or the end of an alternation.
<p><b>Example:</b></p>
<pre><code>
(alpha||bravo)
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
(alpha|bravo)
</code></pre>
<!-- tooltip end -->
<p><small>New in 2017.2</small>
</body>
</html>