Merge pull request #13285 from erik-krogh/redoshelp

ReDoS: fix whitespace in the samples in ReDoS.qhelp
This commit is contained in:
Erik Krogh Kristensen
2023-06-01 15:53:58 +02:00
committed by GitHub
4 changed files with 8 additions and 16 deletions

View File

@@ -11,8 +11,7 @@
Consider this regular expression:
</p>
<sample language="java">
^_(__|.)+_$
</sample>
^_(__|.)+_$</sample>
<p>
Its sub-expression <code>"(__|.)+?"</code> can match the string <code>"__"</code> either by the
first alternative <code>"__"</code> to the left of the <code>"|"</code> operator, or by two
@@ -25,8 +24,7 @@
the two branches of the alternative inside the repetition:
</p>
<sample language="java">
^_(__|[^_])+_$
</sample>
^_(__|[^_])+_$</sample>
</example>
<include src="ReDoSReferences.inc.qhelp"/>