Skip to content

Commit c082c25

Browse files
authored
Merge pull request #17244 from geoffw0/swiftdoc2
Swift: Work around some QHelp rendering issues.
2 parents 39a7330 + 0088ece commit c082c25

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

swift/ql/src/queries/Security/CWE-020/IncompleteHostnameRegex.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
</p>
4848

49-
<sample src="IncompleteHostnameRegexBad.swift"/>
49+
<sample src="IncompleteHostnameRegexBad.swift" language=""/>
5050

5151
<p>
5252

@@ -63,7 +63,7 @@
6363

6464
</p>
6565

66-
<sample src="IncompleteHostnameRegexGood.swift"/>
66+
<sample src="IncompleteHostnameRegexGood.swift" language=""/>
6767

6868
</example>
6969

swift/ql/src/queries/Security/CWE-116/BadTagFilter.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ likely to handle corner cases correctly than a custom implementation.
2828
The following example attempts to filters out all <code>&lt;script&gt;</code> tags.
2929
</p>
3030

31-
<sample src="BadTagFilterBad.swift" />
31+
<sample src="BadTagFilterBad.swift" language="" />
3232

3333
<p>
3434
The above sanitizer does not filter out all <code>&lt;script&gt;</code> tags.

swift/ql/src/queries/Security/CWE-1333/ReDoS.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<include src="ReDoSIntroduction.inc.qhelp" />
44
<example>
55
<p>Consider the following regular expression:</p>
6-
<sample language="swift">
6+
<sample language="">
77
/^_(__|.)+_$/</sample>
88
<p>
99
Its sub-expression <code>"(__|.)+"</code> can match the string
@@ -19,7 +19,7 @@
1919
the ambiguity between the two branches of the alternative inside the
2020
repetition:
2121
</p>
22-
<sample language="swift">
22+
<sample language="">
2323
/^_(__|[^_])+_$/</sample>
2424
</example>
2525
<include src="ReDoSReferences.inc.qhelp"/>

0 commit comments

Comments
 (0)