Skip to content

fix(cli): parse strings ending in escaped backslashes - #1005

Open
hamedrabah wants to merge 1 commit into
profullstack:masterfrom
hamedrabah:fix-payment-config-even-backslashes
Open

fix(cli): parse strings ending in escaped backslashes#1005
hamedrabah wants to merge 1 commit into
profullstack:masterfrom
hamedrabah:fix-payment-config-even-backslashes

Conversation

@hamedrabah

Copy link
Copy Markdown

Summary

  • treat a quote as escaped only when it is preceded by an odd number of backslashes
  • keep payment provider parsing intact when config strings end in a literal backslash
  • add a regression test covering a Windows-style output directory

Verification

  • ./node_modules/.bin/vitest run packages/cli/src/commands/config.test.ts (7 tests)
  • ./node_modules/.bin/tsc -p packages/cli/tsconfig.json --noEmit
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant