зеркало из https://github.com/github/codeql.git
JS: Address comments from doc review
This commit is contained in:
Родитель
66a16d21a9
Коммит
d55d5cc4ed
|
@ -17,7 +17,7 @@
|
|||
| **Query** | **Tags** | **Purpose** |
|
||||
|---------------------------------------------------------------------------------|-------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| Cross-site scripting through exception (`js/xss-through-exception`) | security, external/cwe/cwe-079, external/cwe/cwe-116 | Highlights potential XSS vulnerabilities where an exception is written to the DOM. Results are not shown on LGTM by default. |
|
||||
| Regular expression always matches (`js/regex/always-matches`) | correctness, regular-expressions | Highlights regular expression checks that trivially succeed by matching an empty substring. |
|
||||
| Regular expression always matches (`js/regex/always-matches`) | correctness, regular-expressions | Highlights regular expression checks that trivially succeed by matching an empty substring. Results are shown on LGTM by default. |
|
||||
|
||||
## Changes to existing queries
|
||||
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
<p>
|
||||
There are several built-in JavaScript functions that search for a regular expression match within a string,
|
||||
such as <code>RegExp.prototype.test</code> and <code>String.prototype.search</code>.
|
||||
If the regular expression is not anchored, the regular expression does not need to match the whole string;
|
||||
it only needs to match a substring.
|
||||
If the regular expression is not anchored, it only needs to match a substring of the input
|
||||
and won't necessarily match the whole string.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
Загрузка…
Ссылка в новой задаче