Skip to content

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