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

[BUG] Singleline comments with some special characters aren't removed from proccesed text #9

Open
Efratror opened this issue Mar 21, 2022 · 0 comments · May be fixed by #17
Open

[BUG] Singleline comments with some special characters aren't removed from proccesed text #9

Efratror opened this issue Mar 21, 2022 · 0 comments · May be fixed by #17

Comments

@Efratror
Copy link

Bug:

Using characters like for example "," and "@" result in a file creation or compile error due to the fact that the aren't removed from the processed text and are written to the java file.

Possible Solution:

Change the regex expression "singleLineComment" in server/src/preprocessing.ts

from: export let singleLineComment = /\/\/([ ]*([A-Za-z\"\.\(\)\'\=\<\>\!])\w*)*/g
to:     export let singleLineComment = /\/\/(.)*/g

@Efratror Efratror changed the title Singleline comments with some special characters aren't removed from proccesed text [BUG] Singleline comments with some special characters aren't removed from proccesed text Mar 21, 2022
@Efratror Efratror linked a pull request Mar 22, 2022 that will close this issue
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 a pull request may close this issue.

1 participant