Skip to content
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

searching the .sh / .bat script: suggestions #4

Closed
sanderjo opened this issue Feb 11, 2015 · 1 comment
Closed

searching the .sh / .bat script: suggestions #4

sanderjo opened this issue Feb 11, 2015 · 1 comment

Comments

@sanderjo
Copy link

Minor / cosmetic thing:

Current code:

if re.search('(rename\S*\.(sh|bat))',file):

will also find rename.sh.old. It will not find rename.BAT

I changed it to:

if re.search('(rename\S*\.(sh|bat)$)',file,re.IGNORECASE):

HTH

@sanderjo sanderjo changed the title searching the .sh / .bat script searching the .sh / .bat script: suggestions Feb 11, 2015
@clinton-hall
Copy link
Owner

Thanks for this. I have also made this change in my main nzbToMedia project...
Now to get my head around your other fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants