backbone-super
backbone-super copied to clipboard
Make fnTest not match _super in line comments
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.
Can you add tests for this?
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