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

Make fnTest not match _super in line comments #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JelteF
Copy link

@JelteF JelteF commented Jan 17, 2016

Multiline comments are much harder to distinguish with a regex. This is probably an indication that the current method of testing wether super is used in a method is not very good. Maybe another method needs to be found.

Multiline comments are much harder to distinguish with a regex. This is probably an indication that the current method of testing wether super is used in a method is not very good. Maybe another method needs to be found.
@philfreo
Copy link
Collaborator

Can you add tests for this?

@JelteF
Copy link
Author

JelteF commented Jan 18, 2016

I'm not sure how testing works in javascript, but it should not match against strings like these:

blabla \\ this is _super
\\ _super

And it should match against

this._super \\ _super

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 this pull request may close these issues.

2 participants