-
Notifications
You must be signed in to change notification settings - Fork 2
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
Building Regex for file path inside ./.git/hook
in vscode extension
#5
Comments
I was trying to find the file for this so I can do the whole pull request thing. (New to open source, sorry.) I couldn't find the relevant code, but try this regex.
|
Thank You for your suggestion based on your regex pattern i have build an another regex for this logic
request, i hope this will be your first pull request to break the ice 😀 This Regex builder website can help you |
Thanks for the opportunity! I love using regexr. It's the best tool for issues like this! I submitted the pull request w/ the correct regex. |
Final regex which was working for both i want to share small code snippet which can help in in budling regex inside string ( node.js env )
it help when your regex contains string escape characters , Thank You for your contribution |
Regex
just verifies whether.git
andhook
both are present in path or not which not an accurate way to tell whether file belongs to./git/hook
this pathUpdated this regex to view the
runButton
only inside.git/hooks
directoryThe text was updated successfully, but these errors were encountered: