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

unsupport sql comment “ -- ” ? #71

Open
ConanZZ opened this issue Dec 15, 2021 · 2 comments
Open

unsupport sql comment “ -- ” ? #71

ConanZZ opened this issue Dec 15, 2021 · 2 comments

Comments

@ConanZZ
Copy link

ConanZZ commented Dec 15, 2021

No description provided.

@ConanZZ ConanZZ changed the title 不支持sql注释“ -- ” unsupport sql comment “ -- ” ? Dec 15, 2021
@ReinsBrain
Copy link

confirmed: -- sql comments not removed

@ReinsBrain
Copy link

@ConanZZ - hope this helps for your sql:

static stripComments ( content ) { return content .replace(/\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\//g,'') .replace(/^\s*--.*$/g,''); }

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