-
Notifications
You must be signed in to change notification settings - Fork 293
Correct imprecise regex in moveModuleUp function (fixes #444) #447
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
Conversation
The existing regex had the side effect of matching python files from other modules if their filename or path happened to contain the string `s_`.
@alexdebrie can you confirm this will work fine with sls pro? |
@alexdebrie any comments on this? |
welp, he doesn't work at serverless any more either.. @astuyve are there any pythonistas left? 😬 |
I'm always game to learn, could we write a bit more about how to reproduce this bug? I'm happy to give it a shot and let you know |
If i'm not mistaken, it's taht it would include a file like |
@astuyve, here is a minimal example to show the issue. Directory structure looks like this:
The
After running
Hopefully it's clear why this is undesirable, let me know if you need any further elaboration. |
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.
This makes sense based on my reading of the related issue and comments.
The existing regex had the side effect of matching python files
from other modules if their filename or path happened to contain
the string
s_
.