File tree Expand file tree Collapse file tree
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ module StringOps {
194194 /**
195195 * Gets the polarity of the check.
196196 *
197- * If the polarity is `false` the check returns `true` if the string does not start
198- * with the given substring.
197+ * If the polarity is `false` the check returns `true` if the string does not contain
198+ * the given substring.
199199 */
200200 boolean getPolarity ( ) { result = true }
201201 }
@@ -334,8 +334,7 @@ module StringOps {
334334 }
335335
336336 /**
337- * An expression that appears to be part of an `endsWith`-check, that is,
338- * roughly equivalent to `A.endsWith(B)` or `!A.endsWith(B)`.
337+ * An expression that is equivalent to `A.endsWith(B)` or `!A.endsWith(B)`.
339338 */
340339 abstract class EndsWith extends DataFlow:: Node {
341340 /**
@@ -351,7 +350,7 @@ module StringOps {
351350 /**
352351 * Gets the polarity if the check.
353352 *
354- * If the polarity is `false` the check returns `true` if the string does not start
353+ * If the polarity is `false` the check returns `true` if the string does not end
355354 * with the given substring.
356355 */
357356 boolean getPolarity ( ) { result = true }
You can’t perform that action at this time.
0 commit comments