mirror of
https://github.com/github/codeql.git
synced 2026-05-09 15:41:36 +02:00
JavaScript: Autoformat.
This commit is contained in:
@@ -109,7 +109,6 @@ predicate isDerivedFromLength(DataFlow::Node length, DataFlow::Node operand) {
|
||||
*/
|
||||
class UnsafeIndexOfComparison extends EqualityTest {
|
||||
IndexOfCall indexOf;
|
||||
|
||||
DataFlow::Node testedValue;
|
||||
|
||||
UnsafeIndexOfComparison() {
|
||||
|
||||
@@ -37,7 +37,8 @@ predicate isInterestingSemiAnchoredRegExpString(RegExpPatternSource src, string
|
||||
) and
|
||||
anchorPart = src.getPattern().regexpCapture(regex, 1) and
|
||||
anchorPart.regexpMatch("(?i).*[a-z].*") and
|
||||
msg = "Misleading operator precedence. The subexpression '" + anchorPart + "' is anchored, but the other parts of this regular expression are not"
|
||||
msg = "Misleading operator precedence. The subexpression '" + anchorPart +
|
||||
"' is anchored, but the other parts of this regular expression are not"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user