mirror of
https://github.com/github/codeql.git
synced 2026-04-18 05:24:01 +02:00
Merge pull request #13285 from erik-krogh/redoshelp
ReDoS: fix whitespace in the samples in ReDoS.qhelp
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user