File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
javascript/ql/src/Performance Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -871,11 +871,11 @@ predicate isPumpable(State fork, string w) {
871
871
* This assumption breaks on regular expression that use the anchor `$`, e.g: `/^(a+)+$/`, and such regular
872
872
* expression are not accurately modeled by this query.
873
873
*
874
- * The the string `w` is repeated any number of times because the string `w` needs to be
874
+ * The string `w` is repeated any number of times because it needs to be
875
875
* infinitely repeatedable for the attack to work.
876
876
* For a regular expression `/((ab)+)*abab/` the accepting state is not reachable from the fork
877
877
* using epsilon transitions. But any attempt at repeating `w` will end in the accepting state.
878
- * This is also build on the assumption that any accepting state will accept all suffixes.
878
+ * This also relies on the assumption that any accepting state will accept all suffixes.
879
879
*/
880
880
State process ( State fork , string w , int i ) {
881
881
isPumpable ( fork , w ) and
You can’t perform that action at this time.
0 commit comments