зеркало из https://github.com/github/codeql.git
Merge pull request #17244 from geoffw0/swiftdoc2
Swift: Work around some QHelp rendering issues.
This commit is contained in:
Коммит
c082c256a2
|
@ -46,7 +46,7 @@
|
|||
|
||||
</p>
|
||||
|
||||
<sample src="IncompleteHostnameRegexBad.swift"/>
|
||||
<sample src="IncompleteHostnameRegexBad.swift" language=""/>
|
||||
|
||||
<p>
|
||||
|
||||
|
@ -63,7 +63,7 @@
|
|||
|
||||
</p>
|
||||
|
||||
<sample src="IncompleteHostnameRegexGood.swift"/>
|
||||
<sample src="IncompleteHostnameRegexGood.swift" language=""/>
|
||||
|
||||
</example>
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ likely to handle corner cases correctly than a custom implementation.
|
|||
The following example attempts to filters out all <code><script></code> tags.
|
||||
</p>
|
||||
|
||||
<sample src="BadTagFilterBad.swift" />
|
||||
<sample src="BadTagFilterBad.swift" language="" />
|
||||
|
||||
<p>
|
||||
The above sanitizer does not filter out all <code><script></code> tags.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<include src="ReDoSIntroduction.inc.qhelp" />
|
||||
<example>
|
||||
<p>Consider the following regular expression:</p>
|
||||
<sample language="swift">
|
||||
<sample language="">
|
||||
/^_(__|.)+_$/</sample>
|
||||
<p>
|
||||
Its sub-expression <code>"(__|.)+"</code> can match the string
|
||||
|
@ -19,7 +19,7 @@
|
|||
the ambiguity between the two branches of the alternative inside the
|
||||
repetition:
|
||||
</p>
|
||||
<sample language="swift">
|
||||
<sample language="">
|
||||
/^_(__|[^_])+_$/</sample>
|
||||
</example>
|
||||
<include src="ReDoSReferences.inc.qhelp"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче