-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
-e parameter now handle regular espression #164
Conversation
Today I discovered I need this feature, also. Can someone on the My usecase is this: I want to point to a I tried this PR and passed in I would love it if this got merged in :-) |
I will look at it over the weekend! |
bin/react-docgen.js
Outdated
@@ -68,6 +68,11 @@ var ignoreDir = argv.ignore; | |||
var excludePatterns = argv.exclude; | |||
var resolver; | |||
var errorMessage; | |||
var regexRegex = /\/(.*)\/([igymu]{0,5})/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern should be anchored:
/^\/(.*)\/([igymu]{0,5})$/;
Otherwise it looks fine to me!
Merged as d9782c8 . Will release a new version soon. |
Released v2.16.0! v3 beta will follow. |
if only one -e parameter is passed to cli and the value matches /.*/[gmiuy]{0,5} then this is treated as a Regular Expression