File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ abstract class PotentialRegexEval extends CallExpr {
371
371
DataFlow:: Node getAnOptionsInput ( ) { none ( ) }
372
372
373
373
/**
374
- * Holds if this instance actually evaluated a regular expression. If this
374
+ * Holds if this instance actually evaluates a regular expression. If this
375
375
* does not hold, a `RegexEval` is not created for this `PotentialRegexEval`.
376
376
*
377
377
* This mechanism exists so that we have something to track flow of options
@@ -475,7 +475,7 @@ private class NSStringCompareOptionsPotentialRegexEval extends PotentialRegexEva
475
475
476
476
override predicate doesEvaluate ( ) {
477
477
// check there is flow from a `NSString.CompareOptions.regularExpression` value to an `options` argument;
478
- // if it isn't, the input won't be interpretted as a regular expression.
478
+ // if there isn't, the input won't be interpretted as a regular expression.
479
479
exists ( MemberRefExpr sourceValue |
480
480
sourceValue
481
481
.getMember ( )
Original file line number Diff line number Diff line change @@ -6334,11 +6334,21 @@ regex.swift:
6334
6334
# 129| [RegExpStar] .*
6335
6335
#-----| 0 -> [RegExpDot] .
6336
6336
6337
+ # 130| [RegExpDot] .
6338
+
6339
+ # 130| [RegExpStar] .*
6340
+ #-----| 0 -> [RegExpDot] .
6341
+
6337
6342
# 131| [RegExpDot] .
6338
6343
6339
6344
# 131| [RegExpStar] .*
6340
6345
#-----| 0 -> [RegExpDot] .
6341
6346
6347
+ # 132| [RegExpDot] .
6348
+
6349
+ # 132| [RegExpStar] .*
6350
+ #-----| 0 -> [RegExpDot] .
6351
+
6342
6352
# 136| [RegExpDot] .
6343
6353
6344
6354
# 136| [RegExpStar] .*
@@ -6364,11 +6374,21 @@ regex.swift:
6364
6374
# 153| [RegExpStar] .*
6365
6375
#-----| 0 -> [RegExpDot] .
6366
6376
6377
+ # 154| [RegExpDot] .
6378
+
6379
+ # 154| [RegExpStar] .*
6380
+ #-----| 0 -> [RegExpDot] .
6381
+
6367
6382
# 155| [RegExpDot] .
6368
6383
6369
6384
# 155| [RegExpStar] .*
6370
6385
#-----| 0 -> [RegExpDot] .
6371
6386
6387
+ # 156| [RegExpDot] .
6388
+
6389
+ # 156| [RegExpStar] .*
6390
+ #-----| 0 -> [RegExpDot] .
6391
+
6372
6392
# 160| [RegExpDot] .
6373
6393
6374
6394
# 160| [RegExpStar] .*
You can’t perform that action at this time.
0 commit comments