Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve ${ on ES6 #157

Closed
GuilhermeReda opened this issue Nov 4, 2015 · 1 comment
Closed

Preserve ${ on ES6 #157

GuilhermeReda opened this issue Nov 4, 2015 · 1 comment

Comments

@GuilhermeReda
Copy link

Hi, I have a file with the following code.

`SELECT
  nextval('${this.options.schema ? `${this.options.schema}.` : ''}"${this.tableName}_${this.autoIncrementField}_seq"'::regclass
) nextval;`

When I format the file, that line becomes

`SELECT
  nextval('${this.options.schema ? `
  $ {
    this.options.schema
  }.
  ` : ''}"${this.tableName}_${this.autoIncrementField}_seq"'::regclass
) nextval;`

it is putting a space between $ and {, and that breaks my code.

@GuilhermeReda GuilhermeReda changed the title Preserver ${ on ES6 Preserve ${ on ES6 Nov 4, 2015
@jdavisclark
Copy link
Owner

this does not appear to be happening anymore. re-open if necessary. I think you may have had some errant backticks in your example as well, but I'm not sure.

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

No branches or pull requests

2 participants