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

反引号``包裹的字段在生成后自动在左右两侧加上了空格 #20

Open
freecodecampe2016 opened this issue Nov 16, 2022 · 3 comments

Comments

@freecodecampe2016
Copy link

No description provided.

@cobight
Copy link

cobight commented Jan 12, 2023

写了一堆log,定位到了sql-formatter的format方法出现问题

@cobight
Copy link

cobight commented Jan 12, 2023

image

result = result.replaceAll(/([a-zA-Z0-9\.\_]+)/g, "$1");

@cobight
Copy link

cobight commented Jan 12, 2023

  result = result.replaceAll(/` ([a-zA-Z0-9\.\_]+) `/g, "`$1`");

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