This commit is contained in:
Asger F 2019-01-25 11:12:07 +00:00
Родитель bb775e3343
Коммит 8294aeea74
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -194,8 +194,8 @@ module StringOps {
/** /**
* Gets the polarity of the check. * Gets the polarity of the check.
* *
* If the polarity is `false` the check returns `true` if the string does not start * If the polarity is `false` the check returns `true` if the string does not contain
* with the given substring. * the given substring.
*/ */
boolean getPolarity() { result = true } boolean getPolarity() { result = true }
} }
@ -334,8 +334,7 @@ module StringOps {
} }
/** /**
* An expression that appears to be part of an `endsWith`-check, that is, * An expression that is equivalent to `A.endsWith(B)` or `!A.endsWith(B)`.
* roughly equivalent to `A.endsWith(B)` or `!A.endsWith(B)`.
*/ */
abstract class EndsWith extends DataFlow::Node { abstract class EndsWith extends DataFlow::Node {
/** /**
@ -351,7 +350,7 @@ module StringOps {
/** /**
* Gets the polarity if the check. * Gets the polarity if the check.
* *
* If the polarity is `false` the check returns `true` if the string does not start * If the polarity is `false` the check returns `true` if the string does not end
* with the given substring. * with the given substring.
*/ */
boolean getPolarity() { result = true } boolean getPolarity() { result = true }