Skip to content

Commit

Permalink
Update fileManipulate.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mefisto04 authored Oct 13, 2024
1 parent 2351758 commit 0135354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/file/fileManipulate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class PythonManipulator extends BaseManipulator {
const openingQuote = content.slice(prevQuote + 1).search(/(?<!\\)(?:"|'|'''|""")/g) + prevQuote + 1;
if (openingQuote === prevQuote) break;

let closingQuote;
let closingQuote = -1;
if (content.startsWith('"""', openingQuote) || content.startsWith("'''", openingQuote)) {
const quoteType = content.slice(openingQuote, openingQuote + 3);
closingQuote = content.indexOf(quoteType, openingQuote + 3);
Expand Down

0 comments on commit 0135354

Please sign in to comment.