...and a test even!
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
This is bold in Markdown and will probably get occasional false postiives on __init__.py and such, but I think it's the most logical syntax.
Comment Actions
Maybe it's worth using this negative lookbehind prefix (instead of (?<!_)), to avoid matching /__tests__/ and /__init__.py (i.e., "__" is not valid after "/" or "_"):
(?<!_|/)
...and this suffix, for the same cases:
(?!/|\.\S)
(i.e., "__" is not valid before ".x" or "/").
Comment Actions
Will update and send out a new diff once I am sure it works... I readily admit my regex foo is yellow belt at best. =D