RegExp: avoid promises about performance in inspection description

This commit is contained in:
Bas Leijdekkers
2019-04-10 10:13:19 +02:00
parent de8610612f
commit 3eaf009c5f

View File

@@ -1,11 +1,8 @@
<!--
~ Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
-->
<html>
<body>
Reports single char alternation (<b><code>a|b|c|d</code></b>) in a RegExp.
It is simpler and significantly faster to use a character class (<b><code>[abcd]</code></b>) instead.
Reports single char alternation (e.g. <b><code>a|b|c|d</code></b>) in a RegExp.
It is simpler to use a character class (<b><code>[abcd]</code></b>) instead.
This usually also provides slightly better matching performance.
<!-- tooltip end -->
<p>
<small>New in 2017.1</small>