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 e2ae0d1 commit 8191dc7
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 @@ -323,7 +323,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 8191dc7

Please sign in to comment.