@@ -69,7 +69,7 @@ predicate isBackslashEscape(StringSubstitutionCall sub) {
69
69
}
70
70
71
71
/**
72
- * Holds if data flowing into `nd ` has no un-escaped backslashes.
72
+ * Holds if data flowing into `node ` has no un-escaped backslashes.
73
73
*/
74
74
predicate allBackslashesEscaped ( DataFlow:: Node node ) {
75
75
exists ( StringSubstitutionCall sub | node = sub |
@@ -121,7 +121,7 @@ predicate removesFirstOccurence(StringSubstitutionCall sub, string str) {
121
121
}
122
122
123
123
/**
124
- * Gets a method call where the receiver is the result of a string subtitution
124
+ * Gets a method call where the receiver is the result of a string substitution
125
125
* call.
126
126
*/
127
127
DataFlow:: Node getAMethodCall ( StringSubstitutionCall call ) {
@@ -133,7 +133,7 @@ DataFlow::Node getAMethodCall(StringSubstitutionCall call) {
133
133
not call .isDestructive ( ) and call .( DataFlow:: LocalSourceNode ) .flowsTo ( receiver )
134
134
or
135
135
// for a destructive string substitution, is there flow from its
136
- // post-update receivver to the receiver of another method call?
136
+ // post-update receiver to the receiver of another method call?
137
137
call .isDestructive ( ) and
138
138
exists ( DataFlowPrivate:: PostUpdateNode post | post .getPreUpdateNode ( ) = call .getReceiver ( ) |
139
139
post .( DataFlow:: LocalSourceNode ) .flowsTo ( receiver )
@@ -165,7 +165,7 @@ predicate isDelimiterUnwrapper(StringSubstitutionCall leftUnwrap, StringSubstitu
165
165
}
166
166
167
167
/**
168
- * Holds if `sub` is a standalone use of a string subtitution to remove a single
168
+ * Holds if `sub` is a standalone use of a string substitution to remove a single
169
169
* newline, dollar or percent character.
170
170
*
171
171
* This is often done on inputs that are known to only contain a single instance
0 commit comments