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

windows paths in config files striped to their drive letter when parsed #6

Open
Ryex opened this issue Aug 20, 2015 · 1 comment
Open

Comments

@Ryex
Copy link

Ryex commented Aug 20, 2015

the regexp that pulls variable out of config files does not work if there are windows paths, thus preventing proper use of todo.py on windows

strip_re = re.compile('\w+\s([A-Za-z_$="./01]+).*')

as you can see that match group is missing the \ and : characters so windows paths get reduced to the drive letter when they are pulled out.

a fixed line looks like

strip_re = re.compile('\w+\s([A-Za-z_$="./01\\\\:]+).*')

this fix let todo.py work properly for me.

@sigmavirus24
Copy link
Owner

Care to send a PR? I'll happily merge that

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