File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ class StringPart extends StringPart_, AstNode {
167
167
* Gets the length of the content, that is the text between the prefix and the quote.
168
168
* See `context` for obtaining the prefix and the quote.
169
169
*/
170
- int getContentLenght ( ) {
170
+ int getContentLength ( ) {
171
171
exists ( string prefix , string quote | this .context ( prefix , quote ) |
172
172
result = this .getText ( ) .length ( ) - prefix .length ( ) - quote .length ( )
173
173
)
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ module Impl implements RegexTreeViewSig {
230
230
index > 0 and
231
231
exists ( int previousOffset | previousOffset = this .getPartOffset ( index - 1 ) |
232
232
result =
233
- previousOffset + re .( StrConst ) .getImplicitlyConcatenatedPart ( index - 1 ) .getContentLenght ( )
233
+ previousOffset + re .( StrConst ) .getImplicitlyConcatenatedPart ( index - 1 ) .getContentlength ( )
234
234
)
235
235
}
236
236
@@ -245,7 +245,7 @@ module Impl implements RegexTreeViewSig {
245
245
// Example:
246
246
// re.compile('...' r"""...this..""")
247
247
// - `start` is the offset from `(` to `this` as counted after concatenating all parts.
248
- // - we subtract the lenght of the previous `StringPart`s, `'...'`, to know how far into this `StringPart` we go.
248
+ // - we subtract the length of the previous `StringPart`s, `'...'`, to know how far into this `StringPart` we go.
249
249
// - as the prefix 'r"""' is part of the `StringPart`, `this` is found that much further in.
250
250
localOffset = start - this .getPartOffset ( index ) + prefixLength
251
251
)
You can’t perform that action at this time.
0 commit comments