mirror of
https://github.com/github/codeql.git
synced 2026-04-24 16:25:15 +02:00
Merge pull request #13285 from erik-krogh/redoshelp
ReDoS: fix whitespace in the samples in ReDoS.qhelp
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
<example>
|
||||
<p>Consider this regular expression:</p>
|
||||
<sample language="ruby">
|
||||
/^_(__|.)+_$/
|
||||
</sample>
|
||||
/^_(__|.)+_$/</sample>
|
||||
<p>
|
||||
Its sub-expression <code>"(__|.)+?"</code> can match the string
|
||||
<code>"__"</code> either by the first alternative <code>"__"</code> to the
|
||||
@@ -21,8 +20,7 @@
|
||||
repetition:
|
||||
</p>
|
||||
<sample language="ruby">
|
||||
/^_(__|[^_])+_$/
|
||||
</sample>
|
||||
/^_(__|[^_])+_$/</sample>
|
||||
</example>
|
||||
<include src="ReDoSReferences.inc.qhelp"/>
|
||||
</qhelp>
|
||||
|
||||
Reference in New Issue
Block a user