Skip to content

Commit

Permalink
Don't add extra empty line when cleaning up quotes
Browse files Browse the repository at this point in the history
The modified source was having extra blank lines.
  • Loading branch information
pgiraud committed Aug 22, 2024
1 parent 0bbf12f commit ed8f967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/plan-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export class PlanService {
source = source.replace(/^╔(═)+╗\r?\n/gm, "")

// Remove quotes around lines, both ' and "
source = source.replace(/^(["'])(.*)\1\r?/gm, "$2\n")
source = source.replace(/^(["'])(.*)\1\r?/gm, "$2")

// Remove "+" line continuations
source = source.replace(/\s*\+\r?\n/g, "\n")
Expand Down

0 comments on commit ed8f967

Please sign in to comment.