Skip to content

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

Open
@Efratror

Description

@Efratror

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions